Places views in a row.
More...
#include <AUI/Layout/AHorizontalLayout.h>
|
static constexpr ALayoutDirection | DIRECTION = ALayoutDirection::HORIZONTAL |
|
Places views in a row.
| |
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:
setContents(
Horizontal {
_new<AButton>("1"),
_new<AButton>("2"),
_new<AButton>("3"),
}
);
◆ getLayoutDirection()
ALayoutDirection AHorizontalLayout::getLayoutDirection |
( |
| ) |
|
|
overridevirtual |
◆ getMinimumHeight()
int AHorizontalLayout::getMinimumHeight |
( |
| ) |
|
|
overridevirtual |
◆ getMinimumWidth()
int AHorizontalLayout::getMinimumWidth |
( |
| ) |
|
|
overridevirtual |
◆ onResize()
void AHorizontalLayout::onResize |
( |
int | x, |
|
|
int | y, |
|
|
int | width, |
|
|
int | height ) |
|
overridevirtual |
◆ setSpacing()
void AHorizontalLayout::setSpacing |
( |
int | spacing | ) |
|
|
overridevirtual |
Layout spacing.
- Parameters
-
Reimplemented from ALayout.
The documentation for this class was generated from the following files: