SleakEngine 1.0.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
 Root namespace for everything the engine exposes.
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 = 0 , Sleak::UI::StyleColor_WindowBg = 2 , Sleak::UI::StyleColor_ChildBg = 3 , Sleak::UI::StyleColor_Button = 21 ,
  Sleak::UI::StyleColor_ButtonHovered = 22 , Sleak::UI::StyleColor_ButtonActive = 23 , Sleak::UI::StyleColor_FrameBg = 7 , Sleak::UI::StyleColor_Header = 24 ,
  Sleak::UI::StyleColor_HeaderHovered = 25 , Sleak::UI::StyleColor_HeaderActive = 26 , Sleak::UI::StyleColor_ScrollbarBg = 14
}
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 indices (mirrors ImGuiCol_).

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 103 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 119 of file UI.hpp.