LayoutKind
Describes the kind of layout an element represents.
Layout elements like HorizontalLayout or VerticalLayout are lowered to plain
Rectangle elements during compilation. Use this enum (via :attr:Element.layout_kind)
to determine whether an element is actually a layout container and, if so, which kind.
Values
Section titled “Values”HorizontalLayout— The element is aHorizontalLayout.VerticalLayout— The element is aVerticalLayout.GridLayout— The element is aGridLayout.FlexboxLayout— The element is a flex box layout.
© 2026 SixtyFPS GmbH