111 std::function<
void()> renderContent);
The application: owns the windows, the systems and the frame loop.
Definition gui_application.h:209
void InitializeToolbarDockState(ToolbarDockState &state, GUIApplication &app)
Allocates the state's static IDs; call once before the first RenderToolbarDock.
std::string SaveToolbarLayout(std::span< const std::vector< ToolbarItem >, kToolbarSideCount > sides)
Each side's items, by debugName, as text: for a dock that saves with something of its own (a panel's ...
bool ApplyToolbarLayout(std::span< std::vector< ToolbarItem >, kToolbarSideCount > sides, std::string_view text)
Puts each item text names on its saved side and place; the rest stay where they are.
ToolbarSide
A side of a toolbar dock; indexes the per-side arrays.
Definition controls_toolbar_dock.h:34
constexpr int kToolbarSideCount
number of ToolbarSide values
Definition controls_toolbar_dock.h:35
void RenderToolbarDock(GUIApplication &app, ToolbarDockState &state, const std::vector< ToolbarItem >(&itemsPerSide)[kToolbarSideCount], const ToolbarDockCallbacks &callbacks, std::function< void()> renderContent)
Renders the 5-zone scaffold (top / left | content | right / bottom) with a reorderable group per side...
void ReleaseToolbarDockState(ToolbarDockState &state, GUIApplication &app)
Releases the IDs allocated by InitializeToolbarDockState.
@ Top
Definition controls_toolbar_dock.h:34
@ Bottom
Definition gui_style.h:255
@ Top
Definition gui_style.h:254
Definition gui_logging.h:24
A 64-bit element ID whose bit layout depends on its IDMode.
Definition gui_id.h:23
static constexpr ID Invalid()
The "no element" ID (all bits zero); also the default for optional ID parameters.
Definition gui_id.h:66
Definition gui_base_types.h:406
Integer 2D vector.
Definition gui_base_types.h:18