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. |
| void | endRow() |
| void | spring(float relSize)<br>Adds a vertical spring between rows. |
Additional inherited members
Public Types inherited from DIWNE::Stack
| Name | |
|---|---|
| enum | Mode { 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. | |
| void | begin()<br>Begin the stack, should be called before beginItem(). |
| void | end()<br>End the stack, called after begin(). |
| void | setSpacing(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
)Create a vertical item stack.
function VStack
cpp
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()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()function spring
cpp
inline void spring(
float relSize
)Adds a vertical spring between rows.
Updated on 2026-09-11 at 21:24:26 +0000