AUI Framework
develop
Cross-platform base for C++ UI apps
|
Places views in a stack (along z axis). More...
#include <AUI/Layout/AStackedLayout.h>
Public Member Functions# | |
void | onResize (int x, int y, int width, int height) override |
Applies geometry to children. | |
int | getMinimumWidth () override |
int | getMinimumHeight () override |
Declarative notation | Stacked { } Centered { } |
Stacked layout manager places views stacking them onto each other. If the view is expanding, then it uses all space available. Otherwise, the view is centered.
AStackedLayout has two declarative notations - Stacked
and Centered
. They are equivalent, so you can express your intentions more clearly by specifying Stacked
to stack views and Centered
to center them.
First view appears below the second one, and so on. The last view is above all other views within this Stacked layout.
|
overridevirtual |
Implements ALayout.
|
overridevirtual |
Implements ALayout.
|
overridevirtual |
x | x coordinate in container's coordinate space, add padding if necessary. |
y | y coordinate in container's coordinate space, add padding if necessary. |
width | width of the container, add padding if necessary. |
height | height of the container, add padding if necessary. |
See Layout Managers for more info.
Implements ALayout.