Preparing search index...

    Layout manager arranging widgets in a row or column.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    enabled: boolean

    Whether the layout is active and responsive to user input.

    isNull: boolean

    Whether this object references a valid layout.

    spacing: number

    Distance between widgets in the layout.

    Methods

    • Adds a child layout to this BoxLayout. The child layout is appended in the current direction (left-to-right or top-to-bottom).

      Parameters

      Returns void

    • Adds a stretch space (spacer) with the specified stretch factor. Higher stretch values take more available space proportionally. Default factor is 0 (fixed space).

      Parameters

      • stretch: number

      Returns void

    • Adds a widget to the layout with an optional stretch factor and alignment. The stretch determines how much space the widget claims; alignment controls its position within its allocated space.

      Parameters

      Returns void

    • Schedule layout for deletion after event processing.

      Returns void

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object refers to the same instance as the given object.

      Parameters

      Returns boolean

    • Set the margins around layout contents.

      Parameters

      • left: number
      • top: number
      • right: number
      • bottom: number

      Returns void

    • Sets the layout direction (LeftToRight, RightToLeft, TopToBottom, BottomToTop). Controls whether widgets are arranged horizontally or vertically.

      Parameters

      Returns void