Polyphase Game Engine
Loading...
Searching...
No Matches
EditorWidgets.h
Go to the documentation of this file.
1
#pragma once
2
3
#if EDITOR
4
5
#include "imgui.h"
6
7
namespace
Polyphase
8
{
9
// Default visual size (in pixels) for editor checkboxes. Matches the Scene
10
// Inspector "Active" toggle button so checkboxes feel consistent across the
11
// editor regardless of the active theme's FramePadding. Themes may override
12
// this at theme-apply time (see EditorTheme.cpp / CssThemeParser.cpp).
13
extern
float
gCheckboxSize;
14
15
// Drop-in replacement for ImGui::Checkbox that constrains the frame height
16
// to gCheckboxSize for the duration of the call. All theming (checkmark
17
// color, hover, active, rounding) is preserved.
18
bool
Checkbox(
const
char
* label,
bool
* v);
19
}
20
21
#endif
Engine
Source
Editor
EditorWidgets.h
Generated by
1.9.8