|
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
|
The editor's UI controls and inspector drawing, for CustomEditor code: auto& ui = EditorUI::Get(); ui.DrawDefaultInspector(); ui.PropertyField("speed");. More...
#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/EditorUI.h>
Classes | |
| struct | EditCallbacksBytes |
| Edit callbacks a WidgetBackend calls, with the values as raw bytes. More... | |
| struct | EnumCallbacks |
| Change, undo and redo callbacks of an enum field or integer slider. More... | |
| struct | FloatCallbacks |
| Change, undo and redo callbacks of a float field. More... | |
| struct | IntCallbacks |
| Change, undo and redo callbacks of an integer field. More... | |
| struct | TextCallbacks |
| Change, undo and redo callbacks of a text field. More... | |
| struct | VecCallbacks |
| Change, undo and redo callbacks of a vector field, with values as float arrays. More... | |
| struct | WidgetBackend |
| The ImGui widget implementations, installed once by the editor executable. More... | |
Public Types | |
| enum class | Col { Text , Button , ButtonHovered , ButtonActive , FrameBg , FrameBgHovered , FrameBgActive , CheckMark } |
| Editor style color slots, mapped to the theme. More... | |
| using | DrawDefaultPropertiesFunc = std::function<void()> |
| using | DrawPropertyByNameFunc = std::function<void(const char*)> |
| using | DrawPropertyByOffsetFunc = std::function<void(size_t)> |
| using | GetFontAtlasFunc = std::function<uint32_t(const std::string&, int, uint32_t*, uint32_t*)> |
| enum class | Key { Z , Y , S , Delete } |
| using | ModifyAssetFunc |
| enum class | MouseCursor { Arrow , TextInput , ResizeNS , ResizeEW , ResizeAll , Hand , NotAllowed } |
| Mouse cursor shapes for SetMouseCursor (e.g. splitter resize handles). More... | |
| using | ResolveAssetNameFunc = std::function<std::string(const std::string&)> |
| enum class | StyleVar { ItemSpacing , ItemInnerSpacing , FramePadding , CellPadding , WindowPadding } |
| Vec2 style vars for PushStyleVar (balance with PopStyleVar). More... | |
| enum | TableColumnFlags { TableColumnNone = 0 , TableColumnWidthStretch = 1 << 0 , TableColumnWidthFixed = 1 << 1 } |
| Table column flags (bitwise-or). More... | |
| enum | TableFlags { TableNone = 0 , TableResizable = 1 << 0 , TableRowBg = 1 << 1 , TableScrollY = 1 << 2 , TableBordersInnerV = 1 << 3 , TableBordersOuter = 1 << 4 } |
| Table flags (bitwise-or). More... | |
| enum | TreeFlags { TreeNone = 0 , TreeDefaultOpen = 1 << 0 , TreeLeaf = 1 << 1 , TreeOpenOnArrow = 1 << 2 , TreeSelected = 1 << 3 } |
| Tree node flags (bitwise-or). More... | |
| enum class | Unit { None = 0 , Distance , Velocity , Acceleration , Angle } |
| Physical unit of a float or vector field. More... | |
| enum | WinFlags { WinNone = 0 , WinNoScrollbar = 1 << 0 , WinAlwaysAutoResize = 1 << 1 , WinNoSavedSettings = 1 << 2 , WinNoCollapse = 1 << 3 } |
| Window flags (bitwise-or). More... | |
Public Member Functions | |
| bool | ActionButton (const char *label, float width=0.0f) |
| A button for an action rather than a value (Edit 9-Slice, Edit Rect): the outlined, centred box Add Component uses. | |
| void | AlignTextToFramePadding () |
| bool | Begin (const char *name, bool *open=nullptr, int winFlags=0) |
| bool | BeginChild (const char *id, float w, float h, bool border=false) |
| bool | BeginCombo (const char *label, const char *preview) |
| void | BeginComponent (Deki::Component *comp, const Deki::ComponentMeta *meta, DrawPropertyByNameFunc drawByName, DrawPropertyByOffsetFunc drawByOffset, DrawDefaultPropertiesFunc drawDefault, ResolveAssetNameFunc resolveAsset, GetFontAtlasFunc getFontAtlas, ModifyAssetFunc modifyAsset=nullptr) |
| Starts drawing a component's Inspector. Called by InspectorPanel. | |
| void | BeginDisabled (bool disabled=true) |
| void | BeginGroup () |
| Treats a run of widgets as one item (for SameLine, sizing and hit testing the whole block). | |
| void | BeginListClipper (int itemCount, float itemHeight=-1.0f) |
| bool | BeginMenu (const char *label) |
| Submenu inside an open popup or menu. | |
| bool | BeginPopup (const char *id) |
| bool | BeginPopupContextItem (const char *id=nullptr) |
| bool | BeginPopupModal (const char *name, bool *open=nullptr, int winFlags=0) |
| bool | BeginTabBar (const char *id) |
| bool | BeginTabItem (const char *label) |
| bool | BeginTable (const char *id, int columns, int tableFlags=0, float outerW=0.0f, float outerH=0.0f) |
| void | BeginTabLinks () |
| Sub-nav "tab links": a full-bleed row of text labels with a 2px accent underline on the active one (dim -> bright on hover) and a bottom hairline, like the Asset Browser's Assets/Scripts tabs. | |
| void | BeginToolbar () |
| void | BulletText (const char *text) |
| bool | Button (const char *label, float width=0.0f, float height=0.0f) |
| float | CalcItemWidth () |
| Width the next framed control would take with the current item width and indent, for splitting a row between two controls. | |
| bool | Checkbox (const char *label, bool *v) |
| A visible label (e.g. | |
| void | CloseCurrentPopup () |
| bool | CollapsingHeader (const char *label, bool *pVisible=nullptr, bool defaultOpen=false) |
| Collapsing header with an optional close button. | |
| bool | ColorEdit3 (const char *id, float col[3]) |
| bool | ColorEdit4 (const char *id, float col[4]) |
| bool | ColorField (const char *label, float v[4], const VecCallbacks &cb={}) |
| bool | ColorRGBField (const char *label, float v[3], const VecCallbacks &cb={}) |
| bool | Combo (const char *id, int *currentIndex, const char *const items[], int count) |
| bool | Combo (const char *id, int *currentIndex, const char *itemsSeparatedByZeros) |
| bool | DragFloat (const char *id, float *v, float speed=1.0f, float vmin=0.0f, float vmax=0.0f, const char *format="%.3f") |
| bool | DragFloat2 (const char *id, float v[2], float speed=1.0f, float vmin=0.0f, float vmax=0.0f, const char *format="%.3f") |
| bool | DragFloat3 (const char *id, float v[3], float speed=1.0f, float vmin=0.0f, float vmax=0.0f, const char *format="%.3f") |
| bool | DragInt (const char *id, int *v, float speed=1.0f, int vmin=0, int vmax=0) |
| void | DrawCircle (float cx, float cy, float radius, uint32_t rgba, float thickness=1.0f) |
| void | DrawCircleFilled (float cx, float cy, float radius, uint32_t rgba) |
| void | DrawDefaultInspector () |
| Draws every property of the current component, like Unity's DrawDefaultInspector(). | |
| void | DrawImage (uint32_t texture, float x0, float y0, float x1, float y1, float u0=0.0f, float v0=0.0f, float u1=1.0f, float v1=1.0f, uint32_t tint=0xFFFFFFFFu) |
| void | DrawLine (float x0, float y0, float x1, float y1, uint32_t rgba, float thickness=1.0f) |
| void | DrawRect (float x0, float y0, float x1, float y1, uint32_t rgba, float thickness=1.0f, float rounding=0.0f) |
| void | DrawRectFilled (float x0, float y0, float x1, float y1, uint32_t rgba, float rounding=0.0f) |
| void | DrawTextAt (float pixelSize, float x, float y, uint32_t rgba, const char *text) |
| void | DrawTextCss (float cssPx, float x, float y, uint32_t rgba, const char *text) |
| Text sized in CSS px: the backend converts with Fonts::CssPx(currentFont, cssPx) and applies the DPI scale, so hand-drawn labels match widget text. | |
| void | Dummy (float width, float height) |
| Advances the layout cursor by width x height, reserving space for drawing. | |
| void | End () |
| void | EndChild () |
| void | EndCombo () |
| void | EndComponent () |
| void | EndDisabled () |
| void | EndGroup () |
| void | EndListClipper () |
| void | EndMenu () |
| void | EndPopup () |
| void | EndTabBar () |
| void | EndTabItem () |
| void | EndTable () |
| void | EndTabLinks () |
| void | EndToolbar () |
| bool | EnumField (const char *label, int *index, const char *const items[], int count, const EnumCallbacks &cb={}) |
| bool | EnumField (const char *label, int *index, const char *itemsZeroSep, const EnumCallbacks &cb={}) |
| bool | FloatField (const char *label, float *v, float speed=1.0f, float vmin=0.0f, float vmax=0.0f, const char *format="%.3f", const FloatCallbacks &cb={}) |
| bool | FloatField (const char *label, float *v, Unit unit, const FloatCallbacks &cb={}) |
| bool | FloatField (const char *label, float value, float speed, float vmin, float vmax, const char *format, const FloatCallbacks &cb) |
| bool | FloatField (const char *label, float value, Unit unit, const FloatCallbacks &cb) |
| void | FullBleedSeparator () |
| void | GetContentRegionAvail (float *outW, float *outH) |
| void | GetContentRegionMax (float *outX, float *outY) |
| Deki::Component * | GetCurrentComponent () const |
| const Deki::ComponentMeta * | GetCurrentMeta () const |
| void | GetCursorScreenPos (float *outX, float *outY) |
| Top-left screen position where the next widget or drawing goes. | |
| float | GetDeltaTime () |
| float | GetDpiScale () |
| The global DPI scale (FontScaleDpi). | |
| uint32_t | GetFontAtlasTexture (const std::string &fontGuid, int fontSize, uint32_t *outWidth, uint32_t *outHeight) |
| The EditorTexture atlas of a font at a size, for previews, with its width and height, or 0 on failure. | |
| float | GetFontSize () |
| float | GetFrameHeight () |
| float | GetFrameHeightWithSpacing () |
| void | GetFramePadding (float *outX, float *outY) |
| void | GetItemInnerSpacing (float *outX, float *outY) |
| void | GetItemRect (float *outMinX, float *outMinY, float *outMaxX, float *outMaxY) |
| Bounds of the last submitted item (screen space), e.g. | |
| void | GetItemSpacing (float *outX, float *outY) |
| void | GetMainViewportRect (float *outX, float *outY, float *outW, float *outH) |
| void | GetMouseDelta (float *outX, float *outY) |
| void | GetMousePos (float *outX, float *outY) |
| float | GetMouseWheel () |
| uint32_t | GetStyleColor (Col col) |
| float | GetTextLineHeight () |
| void | Hint (const char *text) |
| Dim help text under a run of rows, wrapped and lined up with the row labels. | |
| void | Image (uint32_t texture, float w, float h, float u0=0.0f, float v0=0.0f, float u1=1.0f, float v1=1.0f) |
| Inline image widget that advances the layout, e.g. a texture or atlas preview. | |
| bool | ImageButton (const char *id, uint32_t texture, float w, float h, float u0=0.0f, float v0=0.0f, float u1=1.0f, float v1=1.0f) |
| void | Indent () |
| void | Indent (float amount) |
| Indents by a given number of pixels (e.g. | |
| bool | InputField (const char *label, char *buf, size_t bufSize, const TextCallbacks &cb={}) |
| bool | InputInt (const char *id, int *v, int step=1, int stepFast=100) |
| bool | InputText (const char *id, char *buf, size_t bufSize) |
| bool | InputTextWithHint (const char *id, const char *hint, char *buf, int bufSize) |
| bool | IntField (const char *label, int16_t *v, float speed=1.0f, int64_t vmin=0, int64_t vmax=0, const IntCallbacks &cb={}) |
| bool | IntField (const char *label, int32_t *v, float speed=1.0f, int64_t vmin=0, int64_t vmax=0, const IntCallbacks &cb={}) |
| bool | IntField (const char *label, int8_t *v, float speed=1.0f, int64_t vmin=0, int64_t vmax=0, const IntCallbacks &cb={}) |
| bool | IntField (const char *label, uint16_t *v, float speed=1.0f, int64_t vmin=0, int64_t vmax=0, const IntCallbacks &cb={}) |
| bool | IntField (const char *label, uint32_t *v, float speed=1.0f, int64_t vmin=0, int64_t vmax=0, const IntCallbacks &cb={}) |
| bool | IntField (const char *label, uint8_t *v, float speed=1.0f, int64_t vmin=0, int64_t vmax=0, const IntCallbacks &cb={}) |
| bool | InvisibleButton (const char *id, float w, float h) |
| bool | InvisibleButton (const char *id, float w, float h, bool allowLeft, bool allowMiddle, bool allowRight=false) |
| InvisibleButton that takes which mouse buttons activate it. | |
| bool | IsItemActive () |
| bool | IsItemClicked () |
| bool | IsItemDeactivated () |
| Lost focus this frame, edited or not. | |
| bool | IsItemDeactivatedAfterEdit () |
| bool | IsItemHovered (bool allowWhenDisabled=false) |
| bool | IsKeyAlt () |
| bool | IsKeyCtrl () |
| bool | IsKeyPressed (Key key, bool repeat=true) |
| bool | IsKeyShift () |
| bool | IsMouseClicked (int button) |
| bool | IsMouseDoubleClicked (int button) |
| bool | IsMouseDown (int button) |
| bool | IsMouseDragging (int button, float lockThreshold=-1.0f) |
| bool | IsWindowFocused (bool rootAndChildWindows=false) |
| void | Label (const char *text) |
| bool | ListClipperStep (int *outStart, int *outEnd) |
| void | MeasureText (const char *text, float *outW, float *outH) |
| void | MeasureTextCss (float cssPx, const char *text, float *outW, float *outH) |
| Measures text exactly as DrawTextCss draws it. | |
| bool | MenuItem (const char *label, bool enabled=true) |
| void | ModifyAsset (const std::string &assetPath, const std::string &assetGuid, const std::string &oldJson, const std::string &newJson) |
| Changes an asset file (absolute path) from oldJson to newJson, as an undoable edit. | |
| void | OpenPopup (const char *id) |
| void | OpenPopupOnItemClick (const char *id, int mouseButton=1) |
| Opens id when the last submitted item is clicked with mouseButton (0 = left, 1 = right, 2 = middle). | |
| void | PopClipRect () |
| void | PopFont () |
| void | PopID () |
| void | PopItemWidth () |
| void | PopStyleColor (int count=1) |
| void | PopStyleVar (int count=1) |
| void | PropertyField (const char *propertyName) |
| Draws one property by name. | |
| void | PropertyField (size_t offset) |
| Draws one property by member offset: offsetof(ComponentType, member). | |
| void | PropertyRow (const char *label) |
| Starts a "label : value" row; the next control fills the value column. | |
| void | PushBoldFont () |
| void | PushButtonTextAlign (float x, float y) |
| void | PushClipRect (float x0, float y0, float x1, float y1, bool intersectWithCurrent=true) |
| void | PushID (const void *ptr) |
| void | PushID (int id) |
| void | PushItemWidth (float w) |
| void | PushStyleColor (Col col, uint32_t rgba) |
| void | PushStyleVar (StyleVar var, float x, float y) |
| Pushes a Vec2 style var (e.g. table CellPadding, ItemSpacing); pop with PopStyleVar. | |
| bool | RadioButton (const char *label, bool active) |
| std::string | ResolveAssetName (const std::string &guid) |
| A readable path or name for an asset GUID. | |
| void | SameLine (float offsetFromStartX=0.0f, float spacing=-1.0f) |
| bool | SectionHeader (const char *label) |
| Collapsing section header (full-bleed band). Returns true if expanded. | |
| bool | Selectable (const char *label, bool selected) |
| bool | Selectable (const char *label, bool selected, bool spanAllColumns) |
| Selectable spanning every column of the enclosing table (a full-width row). | |
| bool | SelectableCard (const char *id, const char *title, const char *subtitle, bool selected, uint32_t subtitleColor=0) |
| A richer list entry than Selectable: a full-width "card" with a bold title and an optional dim subtitle, rounded hover/selected backgrounds, and a left accent bar when selected. | |
| void | Separator () |
| void | SetCursorScreenPos (float x, float y) |
| Puts the layout cursor at an absolute screen position, for custom chrome that places widgets and drawing by hand (e.g. | |
| void | SetKeyboardFocusHere () |
| Gives the NEXT widget keyboard focus, for fields that should appear focused (click-to-rename) so the user can type without a second click. | |
| void | SetMouseCursor (MouseCursor cursor) |
| void | SetNextItemAllowOverlap () |
| Lets items submitted LATER in the same window win the hit test against the NEXT item, so submission order becomes front-to-back hit testing. | |
| void | SetNextItemWidth (float w) |
| void | SetNextWindowPos (float x, float y, float pivotX=0.0f, float pivotY=0.0f) |
| void | SetNextWindowSize (float w, float h, bool firstUseEver=false) |
| void | SetNextWindowSizeConstraints (float minW, float minH, float maxW, float maxH) |
| void | SetTooltip (const char *text) |
| bool | SliderField (const char *label, float *v, float vmin, float vmax, const char *format="%.3f", const FloatCallbacks &cb={}) |
| bool | SliderField (const char *label, int *v, int vmin, int vmax, const EnumCallbacks &cb={}) |
| bool | SliderFloat (const char *id, float *v, float vmin, float vmax, const char *format="%.3f") |
| bool | SliderInt (const char *id, int *v, int vmin, int vmax) |
| bool | SmallButton (const char *label) |
| void | Space () |
| void | Spacing () |
| void | TableHeadersRow () |
| bool | TableNextColumn () |
| void | TableNextRow () |
| void | TableSetupColumn (const char *label, int columnFlags=0, float widthOrWeight=0.0f) |
| void | TableSetupScrollFreeze (int cols, int rows) |
| bool | TabLink (const char *label, bool active) |
| void | Text (const char *text) |
| void | TextColored (float r, float g, float b, float a, const char *text) |
| void | TextColored (uint32_t rgba, const char *text) |
| void | TextDisabled (const char *text) |
| void | TextWrapped (const char *text) |
| bool | ToolbarButton (const char *label, bool enabled=true, bool active=false) |
| bool | ToolbarIconButton (const char *id, const char *icon, const char *tooltip=nullptr, bool enabled=true, bool active=false, bool destructive=false) |
| destructive marks a cell that removes something: it is drawn in the palette's red with a red hover fill, so a delete never looks like the buttons beside it. | |
| bool | TreeNodeEx (const char *label, int treeFlags=0) |
| void | TreePop () |
| void | Unindent () |
| void | Unindent (float amount) |
| void | ValueText (const char *text) |
| A read-only value in the value column of the row PropertyRow began, in the fields' font, dimmed and centred on the row. | |
| bool | Vector2Field (const char *label, float v[2], float speed=1.0f, float vmin=0.0f, float vmax=0.0f, const char *format="%.3f", const VecCallbacks &cb={}) |
| bool | Vector2Field (const char *label, float v[2], Unit unit, const VecCallbacks &cb={}) |
| bool | Vector2Field (const char *label, float x, float y, float speed, float vmin, float vmax, const char *format, const VecCallbacks &cb) |
| bool | Vector2Field (const char *label, float x, float y, Unit unit, const VecCallbacks &cb) |
| bool | Vector3Field (const char *label, float v[3], float speed=1.0f, float vmin=0.0f, float vmax=0.0f, const char *format="%.3f", const VecCallbacks &cb={}) |
| bool | Vector3Field (const char *label, float v[3], Unit unit, const VecCallbacks &cb={}) |
| bool | Vector3Field (const char *label, float x, float y, float z, float speed, float vmin, float vmax, const char *format, const VecCallbacks &cb) |
| bool | Vector3Field (const char *label, float x, float y, float z, Unit unit, const VecCallbacks &cb) |
Static Public Member Functions | |
| static EditorUI & | Get () |
| static uint32_t | Rgba (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
| Packs an RGBA color (components 0-255) for the Draw* methods. | |
| static void | SetExtraWindowFlagsProvider (std::function< int(const char *)> fn) |
| Extra ImGui window flags for a window, by the name passed to Begin(). | |
| static void | SetWidgetBackend (const WidgetBackend &backend) |
The editor's UI controls and inspector drawing, for CustomEditor code: auto& ui = EditorUI::Get(); ui.DrawDefaultInspector(); ui.PropertyField("speed");.
Packages use this class instead of ImGui directly. The implementations live in the editor executable and are installed through callbacks (BeginComponent for property drawing, SetWidgetBackend for widgets), so package editors draw with the editor's styled widgets.
InspectorPanel calls BeginComponent/EndComponent around CustomEditor::OnInspectorGUI().
| using DekiEditor::EditorUI::DrawDefaultPropertiesFunc = std::function<void()> |
| using DekiEditor::EditorUI::DrawPropertyByNameFunc = std::function<void(const char*)> |
| using DekiEditor::EditorUI::DrawPropertyByOffsetFunc = std::function<void(size_t)> |
| using DekiEditor::EditorUI::GetFontAtlasFunc = std::function<uint32_t(const std::string&, int, uint32_t*, uint32_t*)> |
| using DekiEditor::EditorUI::ResolveAssetNameFunc = std::function<std::string(const std::string&)> |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Physical unit of a float or vector field.
The value is stored in canonical units (meters, radians); the editor shows it in the project's display unit (px/m, degrees) and snaps Distance to whole pixels in Pixels mode. Mirrors the engine's Deki::PhysicalUnit so the int passes straight through.
| Enumerator | |
|---|---|
| None | |
| Distance | |
| Velocity | |
| Acceleration | |
| Angle | |
| bool DekiEditor::EditorUI::ActionButton | ( | const char * | label, |
| float | width = 0.0f ) |
A button for an action rather than a value (Edit 9-Slice, Edit Rect): the outlined, centred box Add Component uses.
width 0 uses a comfortable default. Returns true when clicked.
| void DekiEditor::EditorUI::AlignTextToFramePadding | ( | ) |
| bool DekiEditor::EditorUI::Begin | ( | const char * | name, |
| bool * | open = nullptr, | ||
| int | winFlags = 0 ) |
| bool DekiEditor::EditorUI::BeginChild | ( | const char * | id, |
| float | w, | ||
| float | h, | ||
| bool | border = false ) |
| bool DekiEditor::EditorUI::BeginCombo | ( | const char * | label, |
| const char * | preview ) |
| void DekiEditor::EditorUI::BeginComponent | ( | Deki::Component * | comp, |
| const Deki::ComponentMeta * | meta, | ||
| DrawPropertyByNameFunc | drawByName, | ||
| DrawPropertyByOffsetFunc | drawByOffset, | ||
| DrawDefaultPropertiesFunc | drawDefault, | ||
| ResolveAssetNameFunc | resolveAsset, | ||
| GetFontAtlasFunc | getFontAtlas, | ||
| ModifyAssetFunc | modifyAsset = nullptr ) |
Starts drawing a component's Inspector. Called by InspectorPanel.
| void DekiEditor::EditorUI::BeginDisabled | ( | bool | disabled = true | ) |
| void DekiEditor::EditorUI::BeginGroup | ( | ) |
Treats a run of widgets as one item (for SameLine, sizing and hit testing the whole block).
Pair BeginGroup with EndGroup.
| void DekiEditor::EditorUI::BeginListClipper | ( | int | itemCount, |
| float | itemHeight = -1.0f ) |
| bool DekiEditor::EditorUI::BeginMenu | ( | const char * | label | ) |
Submenu inside an open popup or menu.
Call EndMenu() only when BeginMenu() returned true.
| bool DekiEditor::EditorUI::BeginPopup | ( | const char * | id | ) |
| bool DekiEditor::EditorUI::BeginPopupContextItem | ( | const char * | id = nullptr | ) |
| bool DekiEditor::EditorUI::BeginPopupModal | ( | const char * | name, |
| bool * | open = nullptr, | ||
| int | winFlags = 0 ) |
| bool DekiEditor::EditorUI::BeginTabBar | ( | const char * | id | ) |
| bool DekiEditor::EditorUI::BeginTabItem | ( | const char * | label | ) |
| bool DekiEditor::EditorUI::BeginTable | ( | const char * | id, |
| int | columns, | ||
| int | tableFlags = 0, | ||
| float | outerW = 0.0f, | ||
| float | outerH = 0.0f ) |
| void DekiEditor::EditorUI::BeginTabLinks | ( | ) |
Sub-nav "tab links": a full-bleed row of text labels with a 2px accent underline on the active one (dim -> bright on hover) and a bottom hairline, like the Asset Browser's Assets/Scripts tabs.
Pair BeginTabLinks with EndTabLinks; draw each with TabLink (returns true when clicked).
| void DekiEditor::EditorUI::BeginToolbar | ( | ) |
| void DekiEditor::EditorUI::BulletText | ( | const char * | text | ) |
| bool DekiEditor::EditorUI::Button | ( | const char * | label, |
| float | width = 0.0f, | ||
| float | height = 0.0f ) |
| float DekiEditor::EditorUI::CalcItemWidth | ( | ) |
Width the next framed control would take with the current item width and indent, for splitting a row between two controls.
| bool DekiEditor::EditorUI::Checkbox | ( | const char * | label, |
| bool * | v ) |
A visible label (e.g.
"Antialiased") draws a whole labeled row, compact (sized to the checkbox, not the tall field frame). A hidden or empty label ("##id") draws just the styled box, for custom inline layouts. Returns true when toggled.
| void DekiEditor::EditorUI::CloseCurrentPopup | ( | ) |
| bool DekiEditor::EditorUI::CollapsingHeader | ( | const char * | label, |
| bool * | pVisible = nullptr, | ||
| bool | defaultOpen = false ) |
Collapsing header with an optional close button.
With a null pVisible there is no close button; otherwise clicking it sets *pVisible to false. Returns true when the section is expanded.
| bool DekiEditor::EditorUI::ColorEdit3 | ( | const char * | id, |
| float | col[3] ) |
| bool DekiEditor::EditorUI::ColorEdit4 | ( | const char * | id, |
| float | col[4] ) |
| bool DekiEditor::EditorUI::ColorField | ( | const char * | label, |
| float | v[4], | ||
| const VecCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::ColorRGBField | ( | const char * | label, |
| float | v[3], | ||
| const VecCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::Combo | ( | const char * | id, |
| int * | currentIndex, | ||
| const char *const | items[], | ||
| int | count ) |
| bool DekiEditor::EditorUI::Combo | ( | const char * | id, |
| int * | currentIndex, | ||
| const char * | itemsSeparatedByZeros ) |
| bool DekiEditor::EditorUI::DragFloat | ( | const char * | id, |
| float * | v, | ||
| float | speed = 1.0f, | ||
| float | vmin = 0.0f, | ||
| float | vmax = 0.0f, | ||
| const char * | format = "%.3f" ) |
| bool DekiEditor::EditorUI::DragFloat2 | ( | const char * | id, |
| float | v[2], | ||
| float | speed = 1.0f, | ||
| float | vmin = 0.0f, | ||
| float | vmax = 0.0f, | ||
| const char * | format = "%.3f" ) |
| bool DekiEditor::EditorUI::DragFloat3 | ( | const char * | id, |
| float | v[3], | ||
| float | speed = 1.0f, | ||
| float | vmin = 0.0f, | ||
| float | vmax = 0.0f, | ||
| const char * | format = "%.3f" ) |
| bool DekiEditor::EditorUI::DragInt | ( | const char * | id, |
| int * | v, | ||
| float | speed = 1.0f, | ||
| int | vmin = 0, | ||
| int | vmax = 0 ) |
| void DekiEditor::EditorUI::DrawCircle | ( | float | cx, |
| float | cy, | ||
| float | radius, | ||
| uint32_t | rgba, | ||
| float | thickness = 1.0f ) |
| void DekiEditor::EditorUI::DrawCircleFilled | ( | float | cx, |
| float | cy, | ||
| float | radius, | ||
| uint32_t | rgba ) |
| void DekiEditor::EditorUI::DrawDefaultInspector | ( | ) |
Draws every property of the current component, like Unity's DrawDefaultInspector().
| void DekiEditor::EditorUI::DrawImage | ( | uint32_t | texture, |
| float | x0, | ||
| float | y0, | ||
| float | x1, | ||
| float | y1, | ||
| float | u0 = 0.0f, | ||
| float | v0 = 0.0f, | ||
| float | u1 = 1.0f, | ||
| float | v1 = 1.0f, | ||
| uint32_t | tint = 0xFFFFFFFFu ) |
| void DekiEditor::EditorUI::DrawLine | ( | float | x0, |
| float | y0, | ||
| float | x1, | ||
| float | y1, | ||
| uint32_t | rgba, | ||
| float | thickness = 1.0f ) |
| void DekiEditor::EditorUI::DrawRect | ( | float | x0, |
| float | y0, | ||
| float | x1, | ||
| float | y1, | ||
| uint32_t | rgba, | ||
| float | thickness = 1.0f, | ||
| float | rounding = 0.0f ) |
| void DekiEditor::EditorUI::DrawRectFilled | ( | float | x0, |
| float | y0, | ||
| float | x1, | ||
| float | y1, | ||
| uint32_t | rgba, | ||
| float | rounding = 0.0f ) |
| void DekiEditor::EditorUI::DrawTextAt | ( | float | pixelSize, |
| float | x, | ||
| float | y, | ||
| uint32_t | rgba, | ||
| const char * | text ) |
| void DekiEditor::EditorUI::DrawTextCss | ( | float | cssPx, |
| float | x, | ||
| float | y, | ||
| uint32_t | rgba, | ||
| const char * | text ) |
Text sized in CSS px: the backend converts with Fonts::CssPx(currentFont, cssPx) and applies the DPI scale, so hand-drawn labels match widget text.
Use this rather than DrawTextAt (raw pixels) for any UI-like text.
| void DekiEditor::EditorUI::Dummy | ( | float | width, |
| float | height ) |
Advances the layout cursor by width x height, reserving space for drawing.
| void DekiEditor::EditorUI::End | ( | ) |
| void DekiEditor::EditorUI::EndChild | ( | ) |
| void DekiEditor::EditorUI::EndCombo | ( | ) |
| void DekiEditor::EditorUI::EndComponent | ( | ) |
| void DekiEditor::EditorUI::EndDisabled | ( | ) |
| void DekiEditor::EditorUI::EndGroup | ( | ) |
| void DekiEditor::EditorUI::EndListClipper | ( | ) |
| void DekiEditor::EditorUI::EndMenu | ( | ) |
| void DekiEditor::EditorUI::EndPopup | ( | ) |
| void DekiEditor::EditorUI::EndTabBar | ( | ) |
| void DekiEditor::EditorUI::EndTabItem | ( | ) |
| void DekiEditor::EditorUI::EndTable | ( | ) |
| void DekiEditor::EditorUI::EndTabLinks | ( | ) |
| void DekiEditor::EditorUI::EndToolbar | ( | ) |
| bool DekiEditor::EditorUI::EnumField | ( | const char * | label, |
| int * | index, | ||
| const char *const | items[], | ||
| int | count, | ||
| const EnumCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::EnumField | ( | const char * | label, |
| int * | index, | ||
| const char * | itemsZeroSep, | ||
| const EnumCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::FloatField | ( | const char * | label, |
| float * | v, | ||
| float | speed = 1.0f, | ||
| float | vmin = 0.0f, | ||
| float | vmax = 0.0f, | ||
| const char * | format = "%.3f", | ||
| const FloatCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::FloatField | ( | const char * | label, |
| float * | v, | ||
| Unit | unit, | ||
| const FloatCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::FloatField | ( | const char * | label, |
| float | value, | ||
| float | speed, | ||
| float | vmin, | ||
| float | vmax, | ||
| const char * | format, | ||
| const FloatCallbacks & | cb ) |
| bool DekiEditor::EditorUI::FloatField | ( | const char * | label, |
| float | value, | ||
| Unit | unit, | ||
| const FloatCallbacks & | cb ) |
| void DekiEditor::EditorUI::FullBleedSeparator | ( | ) |
|
static |
| void DekiEditor::EditorUI::GetContentRegionAvail | ( | float * | outW, |
| float * | outH ) |
| void DekiEditor::EditorUI::GetContentRegionMax | ( | float * | outX, |
| float * | outY ) |
|
inline |
|
inline |
| void DekiEditor::EditorUI::GetCursorScreenPos | ( | float * | outX, |
| float * | outY ) |
Top-left screen position where the next widget or drawing goes.
| float DekiEditor::EditorUI::GetDeltaTime | ( | ) |
| float DekiEditor::EditorUI::GetDpiScale | ( | ) |
The global DPI scale (FontScaleDpi).
Multiply custom-drawn geometry by it to match widget sizes (DrawTextCss already applies it to text).
| uint32_t DekiEditor::EditorUI::GetFontAtlasTexture | ( | const std::string & | fontGuid, |
| int | fontSize, | ||
| uint32_t * | outWidth, | ||
| uint32_t * | outHeight ) |
The EditorTexture atlas of a font at a size, for previews, with its width and height, or 0 on failure.
| float DekiEditor::EditorUI::GetFontSize | ( | ) |
| float DekiEditor::EditorUI::GetFrameHeight | ( | ) |
| float DekiEditor::EditorUI::GetFrameHeightWithSpacing | ( | ) |
| void DekiEditor::EditorUI::GetFramePadding | ( | float * | outX, |
| float * | outY ) |
| void DekiEditor::EditorUI::GetItemInnerSpacing | ( | float * | outX, |
| float * | outY ) |
| void DekiEditor::EditorUI::GetItemRect | ( | float * | outMinX, |
| float * | outMinY, | ||
| float * | outMaxX, | ||
| float * | outMaxY ) |
Bounds of the last submitted item (screen space), e.g.
to hang a control off the right edge of a row just drawn.
| void DekiEditor::EditorUI::GetItemSpacing | ( | float * | outX, |
| float * | outY ) |
| void DekiEditor::EditorUI::GetMainViewportRect | ( | float * | outX, |
| float * | outY, | ||
| float * | outW, | ||
| float * | outH ) |
| void DekiEditor::EditorUI::GetMouseDelta | ( | float * | outX, |
| float * | outY ) |
| void DekiEditor::EditorUI::GetMousePos | ( | float * | outX, |
| float * | outY ) |
| float DekiEditor::EditorUI::GetMouseWheel | ( | ) |
| uint32_t DekiEditor::EditorUI::GetStyleColor | ( | Col | col | ) |
| float DekiEditor::EditorUI::GetTextLineHeight | ( | ) |
| void DekiEditor::EditorUI::Hint | ( | const char * | text | ) |
Dim help text under a run of rows, wrapped and lined up with the row labels.
| void DekiEditor::EditorUI::Image | ( | uint32_t | texture, |
| float | w, | ||
| float | h, | ||
| float | u0 = 0.0f, | ||
| float | v0 = 0.0f, | ||
| float | u1 = 1.0f, | ||
| float | v1 = 1.0f ) |
Inline image widget that advances the layout, e.g. a texture or atlas preview.
| bool DekiEditor::EditorUI::ImageButton | ( | const char * | id, |
| uint32_t | texture, | ||
| float | w, | ||
| float | h, | ||
| float | u0 = 0.0f, | ||
| float | v0 = 0.0f, | ||
| float | u1 = 1.0f, | ||
| float | v1 = 1.0f ) |
| void DekiEditor::EditorUI::Indent | ( | ) |
| void DekiEditor::EditorUI::Indent | ( | float | amount | ) |
Indents by a given number of pixels (e.g.
a panel's content gutter). Pair Indent(amount) with Unindent(amount).
| bool DekiEditor::EditorUI::InputField | ( | const char * | label, |
| char * | buf, | ||
| size_t | bufSize, | ||
| const TextCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::InputInt | ( | const char * | id, |
| int * | v, | ||
| int | step = 1, | ||
| int | stepFast = 100 ) |
| bool DekiEditor::EditorUI::InputText | ( | const char * | id, |
| char * | buf, | ||
| size_t | bufSize ) |
| bool DekiEditor::EditorUI::InputTextWithHint | ( | const char * | id, |
| const char * | hint, | ||
| char * | buf, | ||
| int | bufSize ) |
| bool DekiEditor::EditorUI::IntField | ( | const char * | label, |
| int16_t * | v, | ||
| float | speed = 1.0f, | ||
| int64_t | vmin = 0, | ||
| int64_t | vmax = 0, | ||
| const IntCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::IntField | ( | const char * | label, |
| int32_t * | v, | ||
| float | speed = 1.0f, | ||
| int64_t | vmin = 0, | ||
| int64_t | vmax = 0, | ||
| const IntCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::IntField | ( | const char * | label, |
| int8_t * | v, | ||
| float | speed = 1.0f, | ||
| int64_t | vmin = 0, | ||
| int64_t | vmax = 0, | ||
| const IntCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::IntField | ( | const char * | label, |
| uint16_t * | v, | ||
| float | speed = 1.0f, | ||
| int64_t | vmin = 0, | ||
| int64_t | vmax = 0, | ||
| const IntCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::IntField | ( | const char * | label, |
| uint32_t * | v, | ||
| float | speed = 1.0f, | ||
| int64_t | vmin = 0, | ||
| int64_t | vmax = 0, | ||
| const IntCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::IntField | ( | const char * | label, |
| uint8_t * | v, | ||
| float | speed = 1.0f, | ||
| int64_t | vmin = 0, | ||
| int64_t | vmax = 0, | ||
| const IntCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::InvisibleButton | ( | const char * | id, |
| float | w, | ||
| float | h ) |
| bool DekiEditor::EditorUI::InvisibleButton | ( | const char * | id, |
| float | w, | ||
| float | h, | ||
| bool | allowLeft, | ||
| bool | allowMiddle, | ||
| bool | allowRight = false ) |
InvisibleButton that takes which mouse buttons activate it.
| bool DekiEditor::EditorUI::IsItemActive | ( | ) |
| bool DekiEditor::EditorUI::IsItemClicked | ( | ) |
| bool DekiEditor::EditorUI::IsItemDeactivated | ( | ) |
Lost focus this frame, edited or not.
IsItemDeactivatedAfterEdit stays false when the value was left alone, so it cannot close an inline edit field the user clicked away from without typing.
| bool DekiEditor::EditorUI::IsItemDeactivatedAfterEdit | ( | ) |
| bool DekiEditor::EditorUI::IsItemHovered | ( | bool | allowWhenDisabled = false | ) |
| bool DekiEditor::EditorUI::IsKeyAlt | ( | ) |
| bool DekiEditor::EditorUI::IsKeyCtrl | ( | ) |
| bool DekiEditor::EditorUI::IsKeyPressed | ( | Key | key, |
| bool | repeat = true ) |
| bool DekiEditor::EditorUI::IsKeyShift | ( | ) |
| bool DekiEditor::EditorUI::IsMouseClicked | ( | int | button | ) |
| bool DekiEditor::EditorUI::IsMouseDoubleClicked | ( | int | button | ) |
| bool DekiEditor::EditorUI::IsMouseDown | ( | int | button | ) |
| bool DekiEditor::EditorUI::IsMouseDragging | ( | int | button, |
| float | lockThreshold = -1.0f ) |
| bool DekiEditor::EditorUI::IsWindowFocused | ( | bool | rootAndChildWindows = false | ) |
|
inline |
| bool DekiEditor::EditorUI::ListClipperStep | ( | int * | outStart, |
| int * | outEnd ) |
| void DekiEditor::EditorUI::MeasureText | ( | const char * | text, |
| float * | outW, | ||
| float * | outH ) |
| void DekiEditor::EditorUI::MeasureTextCss | ( | float | cssPx, |
| const char * | text, | ||
| float * | outW, | ||
| float * | outH ) |
Measures text exactly as DrawTextCss draws it.
| bool DekiEditor::EditorUI::MenuItem | ( | const char * | label, |
| bool | enabled = true ) |
| void DekiEditor::EditorUI::ModifyAsset | ( | const std::string & | assetPath, |
| const std::string & | assetGuid, | ||
| const std::string & | oldJson, | ||
| const std::string & | newJson ) |
Changes an asset file (absolute path) from oldJson to newJson, as an undoable edit.
| void DekiEditor::EditorUI::OpenPopup | ( | const char * | id | ) |
| void DekiEditor::EditorUI::OpenPopupOnItemClick | ( | const char * | id, |
| int | mouseButton = 1 ) |
Opens id when the last submitted item is clicked with mouseButton (0 = left, 1 = right, 2 = middle).
For context menus on a widget that already uses the click itself.
| void DekiEditor::EditorUI::PopClipRect | ( | ) |
| void DekiEditor::EditorUI::PopFont | ( | ) |
| void DekiEditor::EditorUI::PopID | ( | ) |
| void DekiEditor::EditorUI::PopItemWidth | ( | ) |
| void DekiEditor::EditorUI::PopStyleColor | ( | int | count = 1 | ) |
| void DekiEditor::EditorUI::PopStyleVar | ( | int | count = 1 | ) |
| void DekiEditor::EditorUI::PropertyField | ( | const char * | propertyName | ) |
Draws one property by name.
| void DekiEditor::EditorUI::PropertyField | ( | size_t | offset | ) |
Draws one property by member offset: offsetof(ComponentType, member).
| void DekiEditor::EditorUI::PropertyRow | ( | const char * | label | ) |
Starts a "label : value" row; the next control fills the value column.
| void DekiEditor::EditorUI::PushBoldFont | ( | ) |
| void DekiEditor::EditorUI::PushButtonTextAlign | ( | float | x, |
| float | y ) |
| void DekiEditor::EditorUI::PushClipRect | ( | float | x0, |
| float | y0, | ||
| float | x1, | ||
| float | y1, | ||
| bool | intersectWithCurrent = true ) |
| void DekiEditor::EditorUI::PushID | ( | const void * | ptr | ) |
| void DekiEditor::EditorUI::PushID | ( | int | id | ) |
| void DekiEditor::EditorUI::PushItemWidth | ( | float | w | ) |
| void DekiEditor::EditorUI::PushStyleColor | ( | Col | col, |
| uint32_t | rgba ) |
| void DekiEditor::EditorUI::PushStyleVar | ( | StyleVar | var, |
| float | x, | ||
| float | y ) |
Pushes a Vec2 style var (e.g. table CellPadding, ItemSpacing); pop with PopStyleVar.
| bool DekiEditor::EditorUI::RadioButton | ( | const char * | label, |
| bool | active ) |
| std::string DekiEditor::EditorUI::ResolveAssetName | ( | const std::string & | guid | ) |
A readable path or name for an asset GUID.
|
inlinestatic |
Packs an RGBA color (components 0-255) for the Draw* methods.
| void DekiEditor::EditorUI::SameLine | ( | float | offsetFromStartX = 0.0f, |
| float | spacing = -1.0f ) |
| bool DekiEditor::EditorUI::SectionHeader | ( | const char * | label | ) |
Collapsing section header (full-bleed band). Returns true if expanded.
| bool DekiEditor::EditorUI::Selectable | ( | const char * | label, |
| bool | selected ) |
| bool DekiEditor::EditorUI::Selectable | ( | const char * | label, |
| bool | selected, | ||
| bool | spanAllColumns ) |
Selectable spanning every column of the enclosing table (a full-width row).
| bool DekiEditor::EditorUI::SelectableCard | ( | const char * | id, |
| const char * | title, | ||
| const char * | subtitle, | ||
| bool | selected, | ||
| uint32_t | subtitleColor = 0 ) |
A richer list entry than Selectable: a full-width "card" with a bold title and an optional dim subtitle, rounded hover/selected backgrounds, and a left accent bar when selected.
Reserves its own height, so cards stack vertically. Returns true when clicked; call IsItemHovered() / IsMouseDoubleClicked() right after for hover and double-click. subtitle may be null for a single line. subtitleColor (packed with Rgba()) tints the subtitle; 0 = the default dim.
| void DekiEditor::EditorUI::Separator | ( | ) |
| void DekiEditor::EditorUI::SetCursorScreenPos | ( | float | x, |
| float | y ) |
Puts the layout cursor at an absolute screen position, for custom chrome that places widgets and drawing by hand (e.g.
toolbars).
|
static |
Extra ImGui window flags for a window, by the name passed to Begin().
The editor executable installs it to make a maximized panel non-resizable: the flag must reach ImGui::Begin() itself, which decides whether the resize grips, border highlight and resize cursor exist. Null (the default) adds nothing.
| void DekiEditor::EditorUI::SetKeyboardFocusHere | ( | ) |
Gives the NEXT widget keyboard focus, for fields that should appear focused (click-to-rename) so the user can type without a second click.
| void DekiEditor::EditorUI::SetMouseCursor | ( | MouseCursor | cursor | ) |
| void DekiEditor::EditorUI::SetNextItemAllowOverlap | ( | ) |
Lets items submitted LATER in the same window win the hit test against the NEXT item, so submission order becomes front-to-back hit testing.
Without it, a big hit surface (a canvas) takes the hovered id for the frame and every widget drawn on top of it cannot be clicked. Call it right before the surface, not before the widgets on top.
| void DekiEditor::EditorUI::SetNextItemWidth | ( | float | w | ) |
| void DekiEditor::EditorUI::SetNextWindowPos | ( | float | x, |
| float | y, | ||
| float | pivotX = 0.0f, | ||
| float | pivotY = 0.0f ) |
| void DekiEditor::EditorUI::SetNextWindowSize | ( | float | w, |
| float | h, | ||
| bool | firstUseEver = false ) |
| void DekiEditor::EditorUI::SetNextWindowSizeConstraints | ( | float | minW, |
| float | minH, | ||
| float | maxW, | ||
| float | maxH ) |
| void DekiEditor::EditorUI::SetTooltip | ( | const char * | text | ) |
|
static |
| bool DekiEditor::EditorUI::SliderField | ( | const char * | label, |
| float * | v, | ||
| float | vmin, | ||
| float | vmax, | ||
| const char * | format = "%.3f", | ||
| const FloatCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::SliderField | ( | const char * | label, |
| int * | v, | ||
| int | vmin, | ||
| int | vmax, | ||
| const EnumCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::SliderFloat | ( | const char * | id, |
| float * | v, | ||
| float | vmin, | ||
| float | vmax, | ||
| const char * | format = "%.3f" ) |
| bool DekiEditor::EditorUI::SliderInt | ( | const char * | id, |
| int * | v, | ||
| int | vmin, | ||
| int | vmax ) |
| bool DekiEditor::EditorUI::SmallButton | ( | const char * | label | ) |
|
inline |
| void DekiEditor::EditorUI::Spacing | ( | ) |
| void DekiEditor::EditorUI::TableHeadersRow | ( | ) |
| bool DekiEditor::EditorUI::TableNextColumn | ( | ) |
| void DekiEditor::EditorUI::TableNextRow | ( | ) |
| void DekiEditor::EditorUI::TableSetupColumn | ( | const char * | label, |
| int | columnFlags = 0, | ||
| float | widthOrWeight = 0.0f ) |
| void DekiEditor::EditorUI::TableSetupScrollFreeze | ( | int | cols, |
| int | rows ) |
| bool DekiEditor::EditorUI::TabLink | ( | const char * | label, |
| bool | active ) |
| void DekiEditor::EditorUI::Text | ( | const char * | text | ) |
| void DekiEditor::EditorUI::TextColored | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a, | ||
| const char * | text ) |
| void DekiEditor::EditorUI::TextColored | ( | uint32_t | rgba, |
| const char * | text ) |
| void DekiEditor::EditorUI::TextDisabled | ( | const char * | text | ) |
| void DekiEditor::EditorUI::TextWrapped | ( | const char * | text | ) |
| bool DekiEditor::EditorUI::ToolbarButton | ( | const char * | label, |
| bool | enabled = true, | ||
| bool | active = false ) |
| bool DekiEditor::EditorUI::ToolbarIconButton | ( | const char * | id, |
| const char * | icon, | ||
| const char * | tooltip = nullptr, | ||
| bool | enabled = true, | ||
| bool | active = false, | ||
| bool | destructive = false ) |
destructive marks a cell that removes something: it is drawn in the palette's red with a red hover fill, so a delete never looks like the buttons beside it.
| bool DekiEditor::EditorUI::TreeNodeEx | ( | const char * | label, |
| int | treeFlags = 0 ) |
| void DekiEditor::EditorUI::TreePop | ( | ) |
| void DekiEditor::EditorUI::Unindent | ( | ) |
| void DekiEditor::EditorUI::Unindent | ( | float | amount | ) |
| void DekiEditor::EditorUI::ValueText | ( | const char * | text | ) |
A read-only value in the value column of the row PropertyRow began, in the fields' font, dimmed and centred on the row.
For what a row shows but does not edit there (a 9-slice's borders, a computed total).
| bool DekiEditor::EditorUI::Vector2Field | ( | const char * | label, |
| float | v[2], | ||
| float | speed = 1.0f, | ||
| float | vmin = 0.0f, | ||
| float | vmax = 0.0f, | ||
| const char * | format = "%.3f", | ||
| const VecCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::Vector2Field | ( | const char * | label, |
| float | v[2], | ||
| Unit | unit, | ||
| const VecCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::Vector2Field | ( | const char * | label, |
| float | x, | ||
| float | y, | ||
| float | speed, | ||
| float | vmin, | ||
| float | vmax, | ||
| const char * | format, | ||
| const VecCallbacks & | cb ) |
| bool DekiEditor::EditorUI::Vector2Field | ( | const char * | label, |
| float | x, | ||
| float | y, | ||
| Unit | unit, | ||
| const VecCallbacks & | cb ) |
| bool DekiEditor::EditorUI::Vector3Field | ( | const char * | label, |
| float | v[3], | ||
| float | speed = 1.0f, | ||
| float | vmin = 0.0f, | ||
| float | vmax = 0.0f, | ||
| const char * | format = "%.3f", | ||
| const VecCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::Vector3Field | ( | const char * | label, |
| float | v[3], | ||
| Unit | unit, | ||
| const VecCallbacks & | cb = {} ) |
| bool DekiEditor::EditorUI::Vector3Field | ( | const char * | label, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | speed, | ||
| float | vmin, | ||
| float | vmax, | ||
| const char * | format, | ||
| const VecCallbacks & | cb ) |
| bool DekiEditor::EditorUI::Vector3Field | ( | const char * | label, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| Unit | unit, | ||
| const VecCallbacks & | cb ) |