ManaPlus
|
#include <containerplacer.h>
Public Member Functions | |
ContainerPlacer (BasicContainer2 *const c, LayoutCell *const lc) | |
LayoutCell & | getCell () |
ContainerPlacer | at (const int x, const int y) |
LayoutCell & | operator() (const int x, const int y, Widget *const wg, const int w, const int h) |
Private Attributes | |
BasicContainer2 * | mContainer |
LayoutCell * | mCell |
This class is a helper for adding widgets to nested tables in a window.
Definition at line 36 of file containerplacer.h.
|
inline |
ContainerPlacer ContainerPlacer::at | ( | const int | x, |
const int | y | ||
) |
Returns a placer for the same container but to an inner cell.
Definition at line 31 of file containerplacer.cpp.
References LayoutCell::at(), ContainerPlacer(), mCell, mContainer, x, and y.
|
inline |
Gets the pointed cell.
Definition at line 50 of file containerplacer.h.
References mCell.
Referenced by InfoClanTab::InfoClanTab(), MapDebugTab::MapDebugTab(), NetDebugTab::NetDebugTab(), and TargetDebugTab::TargetDebugTab().
LayoutCell & ContainerPlacer::operator() | ( | const int | x, |
const int | y, | ||
Widget *const | wg, | ||
const int | w, | ||
const int | h | ||
) |
Adds the given widget to the container and places it in the layout.
Definition at line 37 of file containerplacer.cpp.
References LayoutCell::emptyCell, LayoutCell::place(), x, and y.
|
private |
Definition at line 71 of file containerplacer.h.
|
private |
Definition at line 70 of file containerplacer.h.
Referenced by at().