struct DockManagerLayout::Entry

A single entry in the dock layout which may contain references to two other entries (non-leaf) or may contain multiple widgets (leaf).

Public

Constructors

Entry

Entry()

Methods

~Entry

~Entry() noexcept

staticCreateLeaf

static Entry *CreateLeaf(Entry *parent, u32 childIdx, const Vector<String> &widgetNames)

Creates a new leaf entry with the specified widgets.

parent
Parent of this leaf entry. Can be null for root.
childIdx
Index of this entry in the parents child list. Can be 0 or 1.
widgetNames
A list of all widgets opened in this entry, listed by name.

staticCreateContainer

static Entry *CreateContainer(Entry *parent, u32 childIdx, float splitPosition, bool horizontalSplit)

Creates a new container entry with the specified split data.

parent
Parent of this leaf entry. Can be null for root.
childIdx
Index of this entry in the parents child list. Can be 0 or 1.
splitPosition
Determines at what position(in percent) should this container be split.
horizontalSplit
Whether the split is horizontal (true) or vertical (false).

Fields

WindowNames

Vector<String> WindowNames

IsLeaf

bool IsLeaf

SplitPosition

float SplitPosition

HorizontalSplit

bool HorizontalSplit

Children

Parent