Struct WidgetLayout

Struct Documentation

struct WidgetLayout

Typed placement applied through Session::set_layout to a widget already in that GUI.

See also

Layout rules

Public Members

tgui::Vector2f anchor = {0, 0}

Parent-content anchor fractions, each finite in [0,1].

std::optional<tgui::Vector2f> origin

Widget origin fractions, each finite in [0,1]; unset uses anchor.

Offset offset

Fixed and parent-relative offsets added to anchor.

std::optional<Scalable> scalable

Optional managed size rules; when present at least one axis is required. Releasing a managed axis freezes its current size.