Common Properties
Properties
Section titled “Properties”These properties are valid on all visible items and can be used to specify constraints when used in layouts:
col, row
Section titled “col, row” int default: 0
See GridLayout.
colspan, rowspan
Section titled “colspan, rowspan” int default: 0
See GridLayout.
horizontal-stretch, vertical-stretch
Section titled “horizontal-stretch, vertical-stretch” float (in-out)
default: 0.0
Specify how much relative space these elements are stretching in a layout. When 0, this means that the elements won’t be stretched unless all elements are 0. Builtin widgets have a value of either 0 or 1.
max-width, max-height
Section titled “max-width, max-height” length default: 0px
The maximum size of an element.
min-width, min-height
Section titled “min-width, min-height” length default: 0px
The minimum size of an element.
preferred-width, preferred-height
Section titled “preferred-width, preferred-height” length default: 0px
The preferred size of an element.
© 2025 SixtyFPS GmbH