DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
EditorUI.h File Reference

Classes

struct  DekiEditor::EditorUI::EditCallbacksBytes
 Edit callbacks a WidgetBackend calls, with the values as raw bytes. More...
class  DekiEditor::EditorUI
 The editor's UI controls and inspector drawing, for CustomEditor code: auto& ui = EditorUI::Get(); ui.DrawDefaultInspector(); ui.PropertyField("speed");. More...
struct  DekiEditor::EditorUI::EnumCallbacks
 Change, undo and redo callbacks of an enum field or integer slider. More...
struct  DekiEditor::EditorUI::FloatCallbacks
 Change, undo and redo callbacks of a float field. More...
struct  DekiEditor::EditorUI::IntCallbacks
 Change, undo and redo callbacks of an integer field. More...
struct  DekiEditor::EditorUI::TextCallbacks
 Change, undo and redo callbacks of a text field. More...
struct  DekiEditor::EditorUI::VecCallbacks
 Change, undo and redo callbacks of a vector field, with values as float arrays. More...
struct  DekiEditor::EditorUI::WidgetBackend
 The ImGui widget implementations, installed once by the editor executable. More...

Namespaces

namespace  Deki
namespace  DekiEditor

Macros

#define DRAW_PROPERTY_FIELD(ComponentType, member)
 Draws a property by member: DRAW_PROPERTY_FIELD(SpriteComponent, width);.

Macro Definition Documentation

◆ DRAW_PROPERTY_FIELD

#define DRAW_PROPERTY_FIELD ( ComponentType,
member )
Value:
DekiEditor::EditorUI::Get().PropertyField(offsetof(ComponentType, member))
void PropertyField(size_t offset)
Draws one property by member offset: offsetof(ComponentType, member).
static EditorUI & Get()

Draws a property by member: DRAW_PROPERTY_FIELD(SpriteComponent, width);.