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

Places views in a stack (along z axis). More...

#include <AUI/Layout/AStackedLayout.h>

Public Member Functions#

void onResize (int x, int y, int width, int height) override
 Applies geometry to children.
 
int getMinimumWidth () override
 
int getMinimumHeight () override
 

Detailed Description#

Declarative notation Stacked { }
Centered { }

Stacked layout manager places views stacking them onto each other. If the view is not expanding, the view is centered.

Member Function Documentation#

◆ getMinimumHeight()#

int AStackedLayout::getMinimumHeight ( )
overridevirtual

Implements ALayout.

◆ getMinimumWidth()#

int AStackedLayout::getMinimumWidth ( )
overridevirtual

Implements ALayout.

◆ onResize()#

void AStackedLayout::onResize ( int x,
int y,
int width,
int height )
overridevirtual
Parameters
xx coordinate in container's coordinate space, add padding if necessary.
yy coordinate in container's coordinate space, add padding if necessary.
widthwidth of the container, add padding if necessary.
heightheight of the container, add padding if necessary.

See Layout Managers for more info.

Implements ALayout.