Skip to content

DIWNE::VStack

#include "DIWNE/Core/Layout/VStack.h"

Inherits from DIWNE::Stack, DIWNE::Layout

Public Functions

Name
VStack(NodeEditor & editor)<br>Create a vertical item stack.
VStack(NodeEditor & editor, DiwnePanel * panel)<br>Create a vertical item stack for a specified DIWNE panel, this allows the usage of the spring() method.
DiwnePanel *beginRow()<br>Begins a new row.
voidendRow()
voidspring(float relSize)<br>Adds a vertical spring between rows.

Additional inherited members

Public Types inherited from DIWNE::Stack

Name
enumMode { HORIZONTAL, VERTICAL}

Public Functions inherited from DIWNE::Stack

Name
Stack(NodeEditor & editor, Mode mode)<br>Create a stack.
Stack(NodeEditor & editor, Mode mode, DiwnePanel * panel)<br>Create a stack for a specified DIWNE panel, this allows the usage of the spring() method.
voidbegin()<br>Begin the stack, should be called before beginItem().
voidend()<br>End the stack, called after begin().
voidsetSpacing(float spacing)

Public Functions inherited from DIWNE::Layout

Name
Layout() =default
Layout(DiwnePanel * panel)

Protected Attributes inherited from DIWNE::Layout

Name
DiwnePanel *m_panel <br>Panel associated with this layout.

Public Functions Documentation

function VStack

cpp
inline explicit VStack(
    NodeEditor & editor
)
inline explicit VStack(
    NodeEditor & editor
)

Create a vertical item stack.

function VStack

cpp
inline explicit VStack(
    NodeEditor & editor,
    DiwnePanel * panel
)
inline explicit VStack(
    NodeEditor & editor,
    DiwnePanel * panel
)

Create a vertical item stack for a specified DIWNE panel, this allows the usage of the spring() method.

function beginRow

cpp
inline DiwnePanel * beginRow()
inline DiwnePanel * beginRow()

Begins a new row.

Return: Panel corresponding to the new row.

Starting position of all rows is locked on the X coordinate. All rows are laid out to have the same width.

function endRow

cpp
inline void endRow()
inline void endRow()

function spring

cpp
inline void spring(
    float relSize
)
inline void spring(
    float relSize
)

Adds a vertical spring between rows.


Updated on 2025-05-31 at 12:55:31 +0000