Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
ImGuiWidgets Class Referencefinal

#include <ImGuiWidgets.hpp>

Classes

class  Image
 
struct  InputTextCallback_UserData
 

Static Public Member Functions

static int InputTextCallback (ImGuiInputTextCallbackData *data)
 
static bool InputText (const char *label, std::string *str, const float width, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=nullptr, void *user_data=nullptr)
 
static bool InputTextMultiline (const char *label, std::string *str, const ImVec2 &size, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=nullptr, void *user_data=nullptr)
 
static bool InputTextWithHint (const char *label, const char *hint, std::string *str, const float width, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=nullptr, void *user_data=nullptr)
 
static bool Button (const char *text, const ImVec2 &size=ImVec2(0.0f, 0.0f), const ImVec4 &color=Constants::Colors::BUTTON_COLOR, const ImVec4 &color_hover=Constants::Colors::BUTTON_COLOR_HOVER, const ImVec4 &color_active=Constants::Colors::BUTTON_COLOR_ACTIVE)
 
static bool BackButton (const char *str_id, const ImVec2 &size=ImVec2(0.0f, 0.0f), const ImVec4 &color=Constants::Colors::BACK_BUTTON_COLOR, const ImVec4 &color_hover=Constants::Colors::BACK_BUTTON_COLOR_HOVER, const ImVec4 &color_active=Constants::Colors::BACK_BUTTON_COLOR_ACTIVE)
 
static bool LoadingSpinner (const char *label, float radius, float thickness, const ImU32 color)
 
static bool LoadingBar (const char *label, float value, const ImVec2 &size_arg, const ImU32 bg_col, const ImU32 fg_col)
 
static void LoadingDialog (const char *text, const ImVec2 &spinner_position, const float spinner_radius, const float spinner_thickness, const ImVec4 &spinner_color, const float container_width=(float) Application::getInstance() ->GetWindow() ->GetWidth(), const float container_height=(float) Application::getInstance() ->GetWindow() ->GetHeight())
 

Detailed Description

Definition at line 15 of file ImGuiWidgets.hpp.

Member Function Documentation

◆ BackButton()

static bool ImGuiWidgets::BackButton ( const char *  str_id,
const ImVec2 &  size = ImVec2(0.0f, 0.0f),
const ImVec4 &  color = Constants::Colors::BACK_BUTTON_COLOR,
const ImVec4 &  color_hover = Constants::Colors::BACK_BUTTON_COLOR_HOVER,
const ImVec4 &  color_active = Constants::Colors::BACK_BUTTON_COLOR_ACTIVE 
)
inlinestatic

ImGui BackButton with default color, hover color, active color

Definition at line 139 of file ImGuiWidgets.hpp.

◆ Button()

static bool ImGuiWidgets::Button ( const char *  text,
const ImVec2 &  size = ImVec2(0.0f, 0.0f),
const ImVec4 &  color = Constants::Colors::BUTTON_COLOR,
const ImVec4 &  color_hover = Constants::Colors::BUTTON_COLOR_HOVER,
const ImVec4 &  color_active = Constants::Colors::BUTTON_COLOR_ACTIVE 
)
inlinestatic

ImGui Button with default color, hover color, active color

Definition at line 124 of file ImGuiWidgets.hpp.

◆ InputText()

static bool ImGuiWidgets::InputText ( const char *  label,
std::string *  str,
const float  width,
ImGuiInputTextFlags  flags = 0,
ImGuiInputTextCallback  callback = nullptr,
void *  user_data = nullptr 
)
inlinestatic

ImGui InputText with dynamic std::string

Definition at line 47 of file ImGuiWidgets.hpp.

◆ InputTextCallback()

static int ImGuiWidgets::InputTextCallback ( ImGuiInputTextCallbackData *  data)
inlinestatic

Definition at line 29 of file ImGuiWidgets.hpp.

◆ InputTextMultiline()

static bool ImGuiWidgets::InputTextMultiline ( const char *  label,
std::string *  str,
const ImVec2 &  size,
ImGuiInputTextFlags  flags = 0,
ImGuiInputTextCallback  callback = nullptr,
void *  user_data = nullptr 
)
inlinestatic

ImGui InputTextMultiline with dynamic std::string

Definition at line 60 of file ImGuiWidgets.hpp.

◆ InputTextWithHint()

static bool ImGuiWidgets::InputTextWithHint ( const char *  label,
const char *  hint,
std::string *  str,
const float  width,
ImGuiInputTextFlags  flags = 0,
ImGuiInputTextCallback  callback = nullptr,
void *  user_data = nullptr 
)
inlinestatic

ImGui InputTextWithHint with dynamic std::string

Definition at line 72 of file ImGuiWidgets.hpp.

◆ LoadingBar()

static bool ImGuiWidgets::LoadingBar ( const char *  label,
float  value,
const ImVec2 &  size_arg,
const ImU32  bg_col,
const ImU32  fg_col 
)
inlinestatic

ImGui Loading bar

Note
: https://github.com/ocornut/imgui/issues/1901

Definition at line 204 of file ImGuiWidgets.hpp.

◆ LoadingDialog()

static void ImGuiWidgets::LoadingDialog ( const char *  text,
const ImVec2 &  spinner_position,
const float  spinner_radius,
const float  spinner_thickness,
const ImVec4 &  spinner_color,
const float  container_width = (float) Application::getInstance()->GetWindow()->GetWidth(),
const float  container_height = (float) Application::getInstance()->GetWindow()->GetHeight() 
)
inlinestatic

Popup dialog has spinner loading inside it, displayed when a worker thread is launched to prevent interactions with the scene widgets until the thread is finished.

Note
: https://github.com/ocornut/imgui/issues/249

Definition at line 257 of file ImGuiWidgets.hpp.

◆ LoadingSpinner()

static bool ImGuiWidgets::LoadingSpinner ( const char *  label,
float  radius,
float  thickness,
const ImU32  color 
)
inlinestatic

ImGui Loading spinner

Note
: https://github.com/ocornut/imgui/issues/1901

Definition at line 160 of file ImGuiWidgets.hpp.


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