AUI Framework
develop
Cross-platform base for C++ UI apps
|
Places views in a column. More...
#include <AUI/Layout/AVerticalLayout.h>
Public Member Functions# | |
AVerticalLayout (int spacing) | |
void | onResize (int x, int y, int width, int height) override |
Applies geometry to children. | |
int | getMinimumWidth () override |
int | getMinimumHeight () override |
void | setSpacing (int spacing) override |
int | getSpacing () const |
ALayoutDirection | getLayoutDirection () override |
Static Public Attributes# | |
static constexpr ALayoutDirection | DIRECTION = ALayoutDirection::VERTICAL |
Declarative notation | Vertical { } |
Vertical layout manager places views in a column, fitting their width to the container's height. Has a Vertical
shortcut that allows easy usage in UI building:
|
overridevirtual |
Reimplemented from ALayout.
|
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.
|
overridevirtual |
Reimplemented from ALayout.