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

#include <Container.H>

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

Public Member Functions

void setBorder (unsigned int size)
 
unsigned int getBorder (void)
 
Containeroperator<< (Container &c)
 
Containeroperator<< (Container *c)
 
Containeroperator<< (Widget &w)
 
Containeroperator<< (Widget *w)
 
virtual Containeroperator<< (GtkWidget *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

- Protected Attributes inherited from Widget
GtkWidget * widget
 The container based widget. More...
 

Detailed Description

Container

Base class for those which inherit from the Container

Definition at line 28 of file Container.H.

Member Function Documentation

◆ areAnyChildrensSensitive()

bool Container::areAnyChildrensSensitive ( void  )
inline

Finds if any of the container's children are sensitive.

Returns
true if any of the container's children are sensitive, or false otherwise.

Definition at line 164 of file Container.H.

◆ getBorder()

unsigned int Container::getBorder ( void  )
inline

Get the border size of the container class

Returns
the size of the border

Definition at line 48 of file Container.H.

◆ operator<<() [1/6]

Container& Container::operator<< ( Container c)
inline

Operator to pack a different container in this container

Parameters
cThe container to add.
Returns
Returns a Container reference for further processing.
Examples:
DragNDropTest.C.

Definition at line 56 of file Container.H.

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

◆ operator<<() [2/6]

Container& Container::operator<< ( Container c)
inline

Operator to pack a pointed to container in this container

Parameters
cA pointer to the container to add.
Returns
Returns a Container reference for further processing.

Definition at line 64 of file Container.H.

Here is the call graph for this function:

◆ operator<<() [3/6]

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

Operator to pack a Widget class

Parameters
wThe widget to add.
Returns
Returns a Container reference for further processing.

Definition at line 72 of file Container.H.

Here is the call graph for this function:

◆ operator<<() [4/6]

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

Operator to pack a Widget pointer

Parameters
wA pointer to the Widget to add.
Returns
Returns a Container reference for further processing.

Definition at line 80 of file Container.H.

Here is the call graph for this function:

◆ operator<<() [5/6]

virtual Container& Container::operator<< ( GtkWidget *  w)
inlinevirtual

Pack a GtkWidget into the container.

Parameters
wA pointer to the GtkWidget to pack.
Returns
Returns a Container reference for further processing.

Reimplemented in Box, and Table.

Definition at line 88 of file Container.H.

Here is the call graph for this function:

◆ operator<<() [6/6]

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

Pack a LinkList of GtkWidget(s) into the container.

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

Definition at line 97 of file Container.H.

◆ operator>>() [1/4]

Container& Container::operator>> ( GtkWidget *  w)
inline

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

Parameters
wThe widget to be unpacked from the container.
Returns
Returns a Container reference for further processing.
Examples:
DragNDropTest.C.

Definition at line 109 of file Container.H.

Here is the caller graph for this function:

◆ operator>>() [2/4]

Container& Container::operator>> ( Container c)
inline

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

Parameters
cThe pointer to the container to be unpacked from the container.
Returns
Returns a Container reference for further processing.

Definition at line 119 of file Container.H.

Here is the call graph for this function:

◆ operator>>() [3/4]

Container& Container::operator>> ( Container c)
inline

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

Parameters
cThe pointer to the container to be unpacked from the container.
Returns
Returns a Container reference for further processing.

Definition at line 129 of file Container.H.

Here is the call graph for this function:

◆ operator>>() [4/4]

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

Unpack a LinkList of GtkWidget(s) from the container.

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

Definition at line 138 of file Container.H.

Here is the call graph for this function:

◆ pack()

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

Should be overloaded by inheriting classes if it has more sophisticated paching techniques, such as Box

Reimplemented in Box, Alignment, Scrolling, and EventBox.

Definition at line 33 of file Container.H.

Here is the caller graph for this function:

◆ setBorder()

void Container::setBorder ( unsigned int  size)
inline

Set the border size of the container class

Parameters
sizethe size of the border

Definition at line 41 of file Container.H.

◆ setChildrensSensitivity()

void Container::setChildrensSensitivity ( bool  sens)
inline

Sets the sensitivity of the containers childeren.

Parameters
sensThe sensitivity to set.

Definition at line 151 of file Container.H.

◆ size()

unsigned int Container::size ( )
inline

Find out how many children are contained.

Returns
the number of children contained.

Definition at line 178 of file Container.H.


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