AUI Framework
develop
Cross-platform base for C++ UI apps
|
Places views in a row. More...
#include <AUI/Layout/AHorizontalLayout.h>
Public Member Functions# | |
AHorizontalLayout (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 |
Layout spacing. | |
int | getSpacing () const |
ALayoutDirection | getLayoutDirection () override |
Static Public Attributes# | |
static constexpr ALayoutDirection | DIRECTION = ALayoutDirection::HORIZONTAL |
Declarative notation | Horizontal { } |
Horizontal layout manager places views in a row, fitting their height to the container's height. Has a Horizontal
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 |
spacing | spacing in px. |
Reimplemented from ALayout.