Places views in a row.
More...
Places views in a row.
- UI Builder
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(
_new<AButton>("1"),
_new<AButton>("2"),
_new<AButton>("3"),
}
);
Definition: Declarative.h:173
|
static constexpr ALayoutDirection | DIRECTION = ALayoutDirection::HORIZONTAL |
|
|
static void | disconnect () |
|
template<AAnySignal Signal, aui::derived_from< AObject > Object, ACompatibleSlotFor< Signal > Function> |
static void | connect (Signal &signal, Object *object, Function &&function) |
|
template<AAnySignal Signal, aui::derived_from< AObject > Object, ACompatibleSlotFor< Signal > Function> |
static void | connect (Signal &signal, Object &object, Function &&function) |
|
template<AAnySignal Signal, aui::derived_from< AObject > Object, ACompatibleSlotFor< Signal > Function> |
static void | connect (Signal &signal, _< Object > object, Function &&function) |
|
static void | moveToThread (aui::no_escape< AObject > object, _< AAbstractThread > thread) |
|
void | addViewBasicImpl (Storage view, AOptional< size_t > index) |
|
void | setThread (_< AAbstractThread > thread) |
| Set thread of the object.
|
|
AVector< Storage > | mViews |
|
◆ 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.
#include <AUI/Layout/AHorizontalLayout.h>
The documentation for this class was generated from the following files: