Skip to content

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.

  • HorizontalLayout — The element is a HorizontalLayout.
  • VerticalLayout — The element is a VerticalLayout.
  • GridLayout — The element is a GridLayout.
  • FlexboxLayout — The element is a flex box layout.

© 2026 SixtyFPS GmbH