AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AVerticalLayout Class Reference

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
 
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
 

Detailed Description

Places views in a column.

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:

setContents(
Vertical {
_new<AButton>("1"),
_new<AButton>("2"),
_new<AButton>("3"),
}
);

Member Function Documentation

◆ getLayoutDirection()

ALayoutDirection AVerticalLayout::getLayoutDirection ( )
overridevirtual

Reimplemented from ALayout.

◆ getMinimumHeight()

int AVerticalLayout::getMinimumHeight ( )
overridevirtual

Implements ALayout.

◆ getMinimumWidth()

int AVerticalLayout::getMinimumWidth ( )
overridevirtual

Implements ALayout.

◆ onResize()

void AVerticalLayout::onResize ( int x,
int y,
int width,
int height )
overridevirtual

Implements ALayout.

◆ setSpacing()

void AVerticalLayout::setSpacing ( int spacing)
overridevirtual
See also
LayoutSpacing

Reimplemented from ALayout.


The documentation for this class was generated from the following files:
Inheritance diagram for AVerticalLayout:
Collaboration diagram for AVerticalLayout: