46 expandDefault=fillDefault=
false;
49 expand = expandDefault;
71 BoxIS(
bool expandIn,
bool fillIn) {
82 BoxIS(
bool expandIn,
bool fillIn,
bool startIn) {
101 startDefault=startIn;
109 expandDefault=expandIn;
110 expand=expandDefault;
142 cout<<
"BoxIS::expand="<<expand<<
", fill="<<fill<<
", start="<<start<<endl;
162 virtual void pack(GtkWidget *obj) {
164 gtk_box_pack_start (GTK_BOX (widget), obj, expand, fill, 0);
166 gtk_box_pack_end (GTK_BOX (widget), obj, expand, fill, 0);
171 enum {EXPAND=1, FILL=2, START=4, RESET=8, END=16, NOFILL=32, NOEXPAND=64};
293 Box& operator <<(LinkList<GtkWidget *> &ll) {
303 Box& operator >>(GtkWidget * b) {
342 Container::operator=(b);
356 #if GTK_MAJOR_VERSION==2 357 widget = gtk_vbox_new (FALSE, 0);
359 widget = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
371 #if GTK_MAJOR_VERSION==2 372 widget = gtk_hbox_new (FALSE, 0);
374 widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
386 #if GTK_MAJOR_VERSION==2 387 widget = gtk_hbutton_box_new ();
389 widget = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
401 #if GTK_MAJOR_VERSION==2 402 widget = gtk_vbutton_box_new ();
404 widget = gtk_button_box_new(GTK_ORIENTATION_VERTICAL);
BoxIS(bool expandIn, bool fillIn)
Container & operator>>(GtkWidget *w)
bool start
Set to pack the start.
void setDefaultExpand(bool expandIn)
Container & operator<<(Container &c)
bool expand
Set to expand the box contents.
void setDefaultFill(bool fillIn)
std::ostream & operator<<(std::ostream &stream, const BitStream &bitStream)
Box & operator<<(BoxIS bis)
destructor destroys the widget to neatly cleanup.
bool startDefault
The default state of the start value = ! BoxIS::defaultVal.
bool fill
Set to fill the box.
virtual void pack(GtkWidget *obj)
void setDefaultStart(bool startIn)
Box & operator=(const Box b)
bool fillDefault
The default state of the fill value = BoxIS::defaultVal.
BoxIS & operator=(const BoxIS bis)
BoxIS(bool expandIn, bool fillIn, bool startIn)
BoxIS & operator=(BoxIS &bis)
bool expandDefault
The default state of the expand value = BoxIS::defaultVal.