DIWNE::HStack
#include "DIWNE/Core/Layout/HStack.h"
Inherits from DIWNE::Stack, DIWNE::Layout
Public Functions
Name | |
---|---|
HStack(NodeEditor & editor)<br>Create a horizontal item stack. | |
HStack(NodeEditor & editor, DiwnePanel * panel)<br>Create a horizontal item stack for a specified DIWNE panel, this allows the usage of the spring() method. | |
DiwnePanel * | beginCol()<br>Begins a new column. |
void | endCol() |
void | spring(float relSize)<br>Adds a horizontal spring between columns. |
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 HStack
cpp
inline explicit HStack(
NodeEditor & editor
)
inline explicit HStack(
NodeEditor & editor
)
Create a horizontal item stack.
function HStack
cpp
inline explicit HStack(
NodeEditor & editor,
DiwnePanel * panel
)
inline explicit HStack(
NodeEditor & editor,
DiwnePanel * panel
)
Create a horizontal item stack for a specified DIWNE panel, this allows the usage of the spring() method.
function beginCol
cpp
inline DiwnePanel * beginCol()
inline DiwnePanel * beginCol()
Begins a new column.
Return: Panel corresponding to the new column.
Starting position of all columns is locked on the Y coordinate. All columns are laid out to have the same height.
function endCol
cpp
inline void endCol()
inline void endCol()
function spring
cpp
inline void spring(
float relSize
)
inline void spring(
float relSize
)
Adds a horizontal spring between columns.
Updated on 2025-05-31 at 12:55:31 +0000