1#ifndef YAZE_GUI_CANVAS_HELPERS_H
2#define YAZE_GUI_CANVAS_HELPERS_H
10 float grid_step = 16.0f,
11 bool draw_grid =
true,
12 bool draw_overlay =
true,
13 bool render_popups =
true,
14 bool draw_context_menu =
false) {
21 if (grid_step > 0.0f) {
29 bool ensure_texture =
true,
30 bool render_popups =
true) {
41 bool ensure_texture =
true,
42 bool render_popups =
false) {
Graphical User Interface (GUI) components for the application.
SelectorPanelOpts MakeSelectorOpts(ImVec2 size, float grid_step, int tile_size, bool ensure_texture=true, bool render_popups=true)
CanvasMenuActionHost MakeMenuHostWithDefaults(const CanvasRuntime &rt, CanvasConfig &cfg)
CanvasFrameOptions MakeFrameOptions(ImVec2 size=ImVec2(0, 0), float grid_step=16.0f, bool draw_grid=true, bool draw_overlay=true, bool render_popups=true, bool draw_context_menu=false)
PreviewPanelOpts MakePreviewOpts(ImVec2 size, float grid_step=0.0f, bool ensure_texture=true, bool render_popups=false)
void RegisterDefaultCanvasMenu(CanvasMenuActionHost &host, const CanvasRuntime &rt, CanvasConfig &cfg)
Unified configuration for canvas display and interaction.
std::optional< float > grid_step