GTK+ IOStream  Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
Box Class Reference

#include <Box.H>

Inheritance diagram for Box:
Inheritance graph
[legend]
Collaboration diagram for Box:
Collaboration graph
[legend]

Public Member Functions

 Box (void)
 constructor More...
 
Boxoperator<< (BoxIS bis)
 destructor destroys the widget to neatly cleanup. More...
 
Boxoperator<< (Box &b)
 
Boxoperator<< (Box *b)
 
Boxoperator<< (Container &b)
 
Boxoperator<< (Container *b)
 
Boxoperator<< (GtkWidget *b)
 
Boxoperator<< (LinkList< GtkWidget * > &ll)
 
Boxoperator>> (GtkWidget *b)
 
Boxoperator>> (Container *b)
 
Boxoperator>> (Container &b)
 
void connectAfter (const char *event, GCallback callback, gpointer data)
 
Boxoperator= (const Box b)
 
- Public Member Functions inherited from BoxIS
 BoxIS (void)
 
 BoxIS (bool expandIn, bool fillIn)
 
 BoxIS (bool expandIn, bool fillIn, bool startIn)
 
void reset (void)
 
void setDefaultStart (bool startIn)
 
void setDefaultExpand (bool expandIn)
 
void setDefaultFill (bool fillIn)
 
BoxISoperator= (BoxIS &bis)
 
BoxISoperator= (const BoxIS bis)
 
void dump (void)
 
- Public Member Functions inherited from Container
GtkWidget * getWidget (void)
 
GtkWidget * show (void)
 
GtkWidget * hide (void)
 
void setBorder (unsigned int size)
 
unsigned int getBorder (void)
 
Containeroperator<< (Container &b)
 
Containeroperator<< (Container *b)
 
Containeroperator<< (LinkList< GtkWidget * > &ll)
 
Containeroperator>> (GtkWidget *b)
 
Containeroperator>> (Container *b)
 
Containeroperator>> (Container &b)
 
- Public Member Functions inherited from Widget
virtual ~Widget ()
 Destructor. More...
 
GtkWidget * ref (void)
 
void unref (void)
 

Protected Member Functions

virtual void pack (GtkWidget *obj)
 

Additional Inherited Members

- Public Attributes inherited from BoxIS
bool expand
 Set to expand the box contents. More...
 
bool fill
 Set to fill the box. More...
 
bool start
 Set to pack the start. More...
 
- Protected Attributes inherited from Widget
GtkWidget * widget
 The container based widget. More...
 

Detailed Description

This class implements the foundation for both horizontal and vertical boxes.

Definition at line 148 of file Box.H.

Constructor & Destructor Documentation

Box::Box ( void  )
inline

constructor

Definition at line 168 of file Box.H.

Member Function Documentation

void Box::connectAfter ( const char *  event,
GCallback  callback,
gpointer  data 
)
inline
Connect a signal callback after the other callbacks have run.
Parameters
eventthe signal to generate the callback e.g. "expose-event"
callbackthe callback to call
datathe user data to pass to the callback

Definition at line 280 of file Box.H.

Box& Box::operator<< ( BoxIS  bis)
inline

destructor destroys the widget to neatly cleanup.

Operator to adjust the expand and fill values. This operator sets the expand and fill to either 0 or 1 and is used as follows << BoxIS(expandVal, fillVal).

Parameters
bisThe box input stream variables to set expand and fill as.
Returns
Returns a Box reference for further processing.

Definition at line 181 of file Box.H.

Here is the call graph for this function:

Here is the caller graph for this function:

Box& Box::operator<< ( Box b)
inline
      Align the box : this is a bad idea, as it requires
Parameters
aThe alignment class
Returns
Returns a Box reference for further processing.

Operator to pack a different box in this box

Parameters
bThe box to add.
Returns
Returns a Box reference for further processing.

Definition at line 199 of file Box.H.

Here is the call graph for this function:

Box& Box::operator<< ( Box b)
inline

Operator to pack a pointed to box in this box

Parameters
bA pointer to the box to add.
Returns
Returns a Box reference for further processing.

Definition at line 207 of file Box.H.

Here is the call graph for this function:

Box& Box::operator<< ( Container b)
inline

Operator to pack a different box in this box

Parameters
bThe container to add.
Returns
Returns a Box reference for further processing.

Definition at line 215 of file Box.H.

Here is the call graph for this function:

Box& Box::operator<< ( Container b)
inline

Operator to pack a pointed to box in this box

Parameters
bA pointer to the container to add.
Returns
Returns a Box reference for further processing.

Definition at line 223 of file Box.H.

Here is the call graph for this function:

Box& Box::operator<< ( GtkWidget *  b)
inlinevirtual

Pack a GtkWidget into the box.

Parameters
bA pointer to the GtkWidget to pack.
Returns
Returns a Box reference for further processing.

Reimplemented from Container.

Definition at line 231 of file Box.H.

Here is the call graph for this function:

Box& Box::operator<< ( LinkList< GtkWidget * > &  ll)
inline

Pack a LinkList GtkWidget into the box.

Parameters
llA LinkList of GtkWidget* for packing from the first to the last
Returns
Returns a Box reference for further processing.

Definition at line 240 of file Box.H.

Here is the call graph for this function:

Box& Box::operator= ( const Box  b)
inline

Unpack an unknown widget from the box. Note that removal of the widget can destroy it if the only reference is the box.

Returns
Returns the widget removed from the boxEquals operator

Definition at line 296 of file Box.H.

Here is the call graph for this function:

Box& Box::operator>> ( GtkWidget *  b)
inline

Unpack a widget from the box. Note that removal of the widget can destroy it if the only reference is the box.

Parameters
bThe widget to be unpacked from the box.
Returns
Returns a Box reference for further processing.

Definition at line 250 of file Box.H.

Here is the call graph for this function:

Box& Box::operator>> ( Container b)
inline

Unpack a box pointer from the box. Note that removal of the widget can destroy it if the only reference is the box.

Parameters
bThe pointer to the box to be unpacked from the box.
Returns
Returns a Box reference for further processing.

Definition at line 260 of file Box.H.

Here is the call graph for this function:

Box& Box::operator>> ( Container b)
inline

Unpack a box from the box. Note that removal of the widget can destroy it if the only reference is the box.

Parameters
bThe pointer to the box to be unpacked from the box.
Returns
Returns a Box reference for further processing.

Definition at line 270 of file Box.H.

Here is the call graph for this function:

virtual void Box::pack ( GtkWidget *  obj)
inlineprotectedvirtual

The function called to pack GTK widgets into the box. Once called, the default values for expand and fill are set. At each run, these values can be altered by using the << BoxIS(expand,fill) operator. Post packing, these values are reset.

Parameters
objThe GtkWidget to pack

Reimplemented from Container.

Reimplemented in Alignment, and EventBox.

Definition at line 157 of file Box.H.

Here is the call graph for this function:


The documentation for this class was generated from the following file: