Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ContainerPlacer Class Reference

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

#include <layout.h>

Public Member Functions

 ContainerPlacer (gcn::Container *c=nullptr, LayoutCell *l=nullptr)
 
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
 

Detailed Description

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

Definition at line 33 of file layout.h.

Constructor & Destructor Documentation

◆ ContainerPlacer()

ContainerPlacer::ContainerPlacer ( gcn::Container *  c = nullptr,
LayoutCell l = nullptr 
)
inline

Definition at line 36 of file layout.h.

Member Function Documentation

◆ at()

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.

◆ getCell()

LayoutCell & ContainerPlacer::getCell ( )
inline

Gets the pointed cell.

Definition at line 43 of file layout.h.

◆ operator()()

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 31 of file layout.cpp.

Member Data Documentation

◆ mCell

LayoutCell* ContainerPlacer::mCell
private

Definition at line 60 of file layout.h.

◆ mContainer

gcn::Container* ContainerPlacer::mContainer
private

Definition at line 59 of file layout.h.


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