Skip to content

ASpacerFixed#

Fixed-size view which is useful in UI building.

Header:#include <AUI/View/ASpacerFixed.h>
CMake:aui_link(my_target PUBLIC aui::views)

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.

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.