SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::ImGuiH Class Reference

The ImGuiH Class. This class defines helper function for slate render. More...

#include <ImguiHelper.h>

Static Public Member Functions

static void SetStyle ()
 Setting common style across samples.
 
static void SetFonts (FontMode fontmode=FontMode::FONT_PROPORTIONAL_SCALED)
 Looking for TTF fonts, first on the VULKAN SDK, then Windows default fonts.
 
static void MainDockSpace (Side side=Side::Scene, float alpha=1.0f)
 Begin a docking space.
 
static ImVec2 GetLineItemSize ()
 Get Line Width's Square Size.
 
static bool DrawResetIcon (const bool &isMove)
 Draw Reset Icon.
 
static void Checkbox (bool *isChecked)
 ImGuiHelper Style Checkbox.
 
static void MainMenuTitleSeparator ()
 Draw main menu titile separator.
 
static void CustomMaterialImage (SlateImage *context, ImVec2 size)
 Draw image with custom material.
 
static void DrawPropertyItem (const std::string &itemName, float columeWidth, std::function< void()> nameFunc, std::function< void()> valFunc)
 Draw a single property.
 
static void DrawTreeTitle (const std::string &treeName, std::function< void()> optionFunc, std::function< void()> treeFunc)
 Draw a stylized tree title bar.
 
static void DrawTreeProgressBar (const std::string &treeName, std::function< void()> progressFunc, std::function< void()> treeFunc)
 Draw a stylized tree title bar.
 
static void DrawMaterial (const std::string &name, float width, const std::shared_ptr< Material > &material)
 Draw a Material.
 
static bool S_DragScalarN (const char *label, ImGuiDataType data_type, void *p_data, int components, float v_speed=1.0f, const void *p_min=NULL, const void *p_max=NULL, const char *format=NULL, ImGuiSliderFlags flags=0)
 Draw Drag Scale with different p_min p_max.
 
template<typename T >
static bool DrawMaterialConstParams (std::shared_ptr< Material > material, ImGuiDataType data_type, int components, const char *format, ConstantParams &value)
 Draw ConstantParams.
 

Static Private Member Functions

static float GetDPIScale ()
 Get GLFW DPI Scale.
 

Detailed Description

The ImGuiH Class. This class defines helper function for slate render.

Definition at line 60 of file ImguiHelper.h.


The documentation for this class was generated from the following files: