Structs

Constrains the position to an offset in pixels from parent origin.

Constrains the size of a widget to pixels.

Constrains the widget width to a multiple of height. If value is zero the aspect is unconstrained.

Margin for some widgets, like Text

The offset of the origin from the center of the sprite.

Constrains the size of a widget to a multiple of the parent size. If paired with Aspect width is ignored. The aspect ratio of the parent is not preserved, as only the height will be considered from the parent. This ensures the window width doesn’t stretch UI widgets.

Traits

Trait for encompassing the different offset constraints

Trait for encompassing the different size constraints