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

Fixed-size view which is useful in UI building. More...

#include <AUI/View/ASpacerFixed.h>

Detailed Description

ASpacerFixed is fixed size blank view which acquires specified space in Horizontal and Vertical layouts. For the rest of layout managers it does nothing.

See declarative::SpacerFixed for a declarative form and examples.

ASpacerFixed follows direction of its container layout. That is, for Horizontal layout it consumes horizontal space only and for Vertical layout it consumes vertical space only.

Example usage:

Horizontal {
  Label { "Hello" },
  SpacerFixed(100_dp),
  Label { "world" },
}

In this case, SpacerFixed occupies 100_dp in horizontal but nothing in vertical.

Member Function Documentation

> All members, including inherited

◆ consumesClick()

bool ASpacerFixed::consumesClick ( const glm::ivec2 & pos)
overridevirtual
Parameters
posmouse position
Returns
true if AView processes this click

Used in AViewContainer::getViewAt method subset, thus affecting click event handling.

Reimplemented from AView.

◆ getContentMinimumHeight()

int ASpacerFixed::getContentMinimumHeight ( )
overridevirtual
Returns
minimal content-area height.

Reimplemented from AView.

◆ getContentMinimumWidth()

int ASpacerFixed::getContentMinimumWidth ( )
overridevirtual
Returns
minimal content-area width.

Reimplemented from AView.