ContainerPlacer Class Reference

#include <layout.h>

List of all members.


Detailed Description

This class is a helper for adding widgets to nested tables in a window.

Definition at line 34 of file layout.h.


Public Member Functions

 ContainerPlacer (gcn::Container *c=NULL, LayoutCell *l=NULL)
LayoutCellgetCell ()
 Gets the pointed cell.
ContainerPlacer at (int x, int y)
 Returns a placer for the same container but to an inner cell.
LayoutCelloperator() (int x, int y, gcn::Widget *, int w=1, int h=1)
 Adds the given widget to the container and places it in the layout.

Private Attributes

gcn::Container * mContainer
LayoutCellmCell

Constructor & Destructor Documentation

ContainerPlacer::ContainerPlacer ( gcn::Container *  c = NULL,
LayoutCell l = NULL 
) [inline]

Definition at line 38 of file layout.h.


Member Function Documentation

LayoutCell& ContainerPlacer::getCell (  )  [inline]

Gets the pointed cell.

Definition at line 45 of file layout.h.

ContainerPlacer ContainerPlacer::at ( int  x,
int  y 
)

Returns a placer for the same container but to an inner cell.

Definition at line 26 of file layout.cpp.

LayoutCell & ContainerPlacer::operator() ( int  x,
int  y,
gcn::Widget *  wg,
int  w = 1,
int  h = 1 
)

Adds the given widget to the container and places it in the layout.

See also:
LayoutArray::place

Definition at line 32 of file layout.cpp.


Member Data Documentation

gcn::Container* ContainerPlacer::mContainer [private]

Definition at line 62 of file layout.h.

Definition at line 63 of file layout.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5