gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
Box Class Reference

#include <Box.H>

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

Public Types

enum  {
  EXPAND =1, FILL =2, START =4, RESET =8,
  END =16, NOFILL =32, NOEXPAND =64
}
 

Public Member Functions

 Box (void)
 constructor More...
 
Boxoperator<< (BoxIS bis)
 destructor destroys the widget to neatly cleanup. More...
 
Boxoperator<< (Box &b)
 
Boxoperator<< (int val)
 
Boxoperator<< (Box *b)
 
Boxoperator<< (Container &b)
 
Boxoperator<< (Container *b)
 
Boxoperator<< (GtkWidget *b)
 
Boxoperator<< (Widget *w)
 
Boxoperator<< (Widget &w)
 
Boxoperator<< (LinkList< GtkWidget *> &ll)
 
Boxoperator>> (GtkWidget *b)
 
Boxoperator>> (Container *b)
 
Boxoperator>> (Container &b)
 
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
void setBorder (unsigned int size)
 
unsigned int getBorder (void)
 
Containeroperator<< (Container &c)
 
Containeroperator<< (Container *c)
 
Containeroperator<< (Widget &w)
 
Containeroperator<< (Widget *w)
 
Containeroperator<< (LinkList< GtkWidget *> &ll)
 
Containeroperator>> (GtkWidget *w)
 
Containeroperator>> (Container *c)
 
Containeroperator>> (Container &c)
 
Containeroperator>> (LinkList< GtkWidget *> &ll)
 
void setChildrensSensitivity (bool sens)
 
bool areAnyChildrensSensitive (void)
 
unsigned int size ()
 
- Public Member Functions inherited from Widget
 Widget ()
 Construcotr. More...
 
 Widget (GtkWidget *w)
 
virtual ~Widget ()
 Destructor. More...
 
GtkWidget * ref (void)
 
void unref (void)
 
GtkWidget * show (void)
 
GtkWidget * hide (void)
 
bool getVisible (void)
 
GtkWidget * getWidget (void)
 
bool getSensitive (void)
 
void setSensitive (bool sens)
 
void getSize (int &width, int &height)
 
virtual void setSize (int width, int height)
 
void getLocationSize (int &x, int &y, int &width, int &height)
 
void queueDraw ()
 
GdkWindow * getWindow ()
 
void connect (const char *event, GCallback callback, gpointer data)
 
void connectAfter (const char *event, GCallback callback, gpointer data)
 
void connectExposeEventCallback (GCallback callback, void *data)
 
void connectExposeEventCallback (GtkWidget *w, GCallback callback, void *data)
 
void connectConfigureEventCallback (GCallback callback, void *data)
 
void connectConfigureEventCallback (GtkWidget *w, GCallback callback, void *data)
 
Widgetoperator<< (DragNDrop &dnd)
 
Widgetoperator>> (DragNDrop &dnd)
 

Protected Member Functions

virtual void pack (GtkWidget *obj)
 
- Protected Member Functions inherited from Widget
virtual bool checkDropValidity (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData)
 
virtual bool dragDataReceived (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData, int length)
 
virtual void dragLeave (GtkWidget *w, GtkWidget *sourceWidget)
 
virtual bool dragMotion (GtkWidget *w, GtkWidget *sourceWidget, int x, int y)
 
virtual int chooseTheTargetToUse (GtkWidget *w, GtkWidget *sourceWidget, DragNDrop &dnd)
 
virtual void dragDataGet (GtkWidget *w, GtkSelectionData *selectionData, guint info)
 
virtual void dragDataDelete (GtkWidget *w)
 
virtual void dragBegin (GtkWidget *w)
 
virtual void dragEnd (GtkWidget *w)
 

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 153 of file Box.H.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
EXPAND 
FILL 
START 
RESET 
END 
NOFILL 
NOEXPAND 

Definition at line 171 of file Box.H.

Constructor & Destructor Documentation

◆ Box()

Box::Box ( void  )
inline

constructor

Definition at line 175 of file Box.H.

Member Function Documentation

◆ operator<<() [1/10]

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 188 of file Box.H.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<<() [2/10]

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

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 206 of file Box.H.

Here is the call graph for this function:

◆ operator<<() [3/10]

Box& Box::operator<< ( int  val)
inline

Operator to change one of the packing values : EXPAND, FILL, START, RESET, END, NOFILL, NOEXPAND

You can use like so : Box()<<EXPAND|START

NOTE: Using opposites is undefined, e.g. : Box()<<START|END

Parameters
valOne of : EXPAND, FILL, START, RESET, END, NOFILL, NOEXPAND
Returns
Returns a Box reference for further processing.

Definition at line 218 of file Box.H.

Here is the call graph for this function:

◆ operator<<() [4/10]

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 242 of file Box.H.

Here is the call graph for this function:

◆ operator<<() [5/10]

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 250 of file Box.H.

Here is the call graph for this function:

◆ operator<<() [6/10]

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 258 of file Box.H.

Here is the call graph for this function:

◆ operator<<() [7/10]

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 266 of file Box.H.

Here is the call graph for this function:

◆ operator<<() [8/10]

Box& Box::operator<< ( Widget w)
inline

Pack a GtkWidget into the box.

Parameters
wA Widget to pack.
Returns
Returns a Box reference for further processing.

Definition at line 275 of file Box.H.

Here is the call graph for this function:

◆ operator<<() [9/10]

Box& Box::operator<< ( Widget w)
inline

Pack a GtkWidget into the box.

Parameters
wA Widget to pack.
Returns
Returns a Box reference for further processing.

Definition at line 284 of file Box.H.

Here is the call graph for this function:

◆ operator<<() [10/10]

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 293 of file Box.H.

Here is the call graph for this function:

◆ operator=()

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 340 of file Box.H.

Here is the call graph for this function:

◆ operator>>() [1/3]

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 303 of file Box.H.

Here is the call graph for this function:

◆ operator>>() [2/3]

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 313 of file Box.H.

Here is the call graph for this function:

◆ operator>>() [3/3]

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 323 of file Box.H.

Here is the call graph for this function:

◆ pack()

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 162 of file Box.H.


The documentation for this class was generated from the following file:
gtkIOStream: Box Class Reference
GTK+ IOStream  Beta