SleakEngine 0.1.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
UI

Thin Dear ImGui wrapper; the only UI surface Game is allowed to call. More...

Namespaces

namespace  Sleak::UI
 Immediate-mode UI calls available to game code.

Enumerations

enum  Sleak::UI::PanelFlags : int {
  Sleak::UI::PanelFlags_None = 0 , Sleak::UI::PanelFlags_NoTitleBar = 1 << 0 , Sleak::UI::PanelFlags_AutoResize = 1 << 1 , Sleak::UI::PanelFlags_NoMove = 1 << 2 ,
  Sleak::UI::PanelFlags_NoInput = 1 << 3 , Sleak::UI::PanelFlags_NoFocusOnAppear = 1 << 4
}
enum  Sleak::UI::StyleColor : int {
  Sleak::UI::StyleColor_Text , Sleak::UI::StyleColor_WindowBg , Sleak::UI::StyleColor_ChildBg , Sleak::UI::StyleColor_Button ,
  Sleak::UI::StyleColor_ButtonHovered , Sleak::UI::StyleColor_ButtonActive , Sleak::UI::StyleColor_FrameBg , Sleak::UI::StyleColor_Header ,
  Sleak::UI::StyleColor_HeaderHovered , Sleak::UI::StyleColor_HeaderActive , Sleak::UI::StyleColor_ScrollbarBg
}
enum  Sleak::UI::StyleVar : int {
  Sleak::UI::StyleVar_WindowPadding = 2 , Sleak::UI::StyleVar_WindowRounding = 3 , Sleak::UI::StyleVar_FramePadding = 11 , Sleak::UI::StyleVar_FrameRounding = 12 ,
  Sleak::UI::StyleVar_ItemSpacing = 14
}

Detailed Description

Thin Dear ImGui wrapper; the only UI surface Game is allowed to call.

Enumeration Type Documentation

◆ PanelFlags

#include <UI.hpp>

Bit flags controlling BeginPanel's window chrome and interactivity.

Enumerator
PanelFlags_None 
PanelFlags_NoTitleBar 
PanelFlags_AutoResize 
PanelFlags_NoMove 
PanelFlags_NoInput 
PanelFlags_NoFocusOnAppear 

Definition at line 14 of file UI.hpp.

◆ StyleColor

#include <UI.hpp>

Style color slots, mapped to the matching ImGui color inside the engine.

Enumerator
StyleColor_Text 
StyleColor_WindowBg 
StyleColor_ChildBg 
StyleColor_Button 
StyleColor_ButtonHovered 
StyleColor_ButtonActive 
StyleColor_FrameBg 
StyleColor_Header 
StyleColor_HeaderHovered 
StyleColor_HeaderActive 
StyleColor_ScrollbarBg 

Definition at line 108 of file UI.hpp.

◆ StyleVar

enum Sleak::UI::StyleVar : int

#include <UI.hpp>

Style var indices (must match ImGuiStyleVar_).

Enumerator
StyleVar_WindowPadding 
StyleVar_WindowRounding 
StyleVar_FramePadding 
StyleVar_FrameRounding 
StyleVar_ItemSpacing 

Definition at line 124 of file UI.hpp.