yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_workbench_layout.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_DUNGEON_WORKSPACE_DUNGEON_WORKBENCH_LAYOUT_H
2#define YAZE_APP_EDITOR_DUNGEON_WORKSPACE_DUNGEON_WORKBENCH_LAYOUT_H
3
4#include "imgui/imgui.h"
5
6namespace yaze::editor {
7
8// Use only space below the fitted square room; never reduce its fitted size.
9float ResolveDungeonWorkbenchNearbyHeight(float width, float height,
10 float requested_height,
11 float item_spacing);
12
13// Draw a workbench-standard vertical splitter that mutates pane_width.
14// Returns true when the drag moves past collapse_threshold.
15bool DrawDungeonWorkbenchVerticalSplitter(const char* id, float height,
16 float* pane_width, float min_width,
17 float max_width,
18 bool resize_from_left_edge,
19 float collapse_threshold = 100.0f);
20
21} // namespace yaze::editor
22
23#endif // YAZE_APP_EDITOR_DUNGEON_WORKSPACE_DUNGEON_WORKBENCH_LAYOUT_H
Editors are the view controllers for the application.
float ResolveDungeonWorkbenchNearbyHeight(float width, float height, float requested_height, float item_spacing)
bool DrawDungeonWorkbenchVerticalSplitter(const char *id, float height, float *pane_width, float min_width, float max_width, bool resize_from_left_edge, float collapse_threshold)