11 static constexpr ImVec4
GREEN{0.2f, 0.6f, 0.3f, 1.0f};
12 static constexpr ImVec4
RED{0.78f, 0.0f, 0.0f, 1.0f};
14 static void IndentTextColored(
const ImVec4& color,
const std::string& text,
float indent = 120.f)
28 static void RedTitleText(
const std::string& text,
float indent = 75.f)
36 static bool Checkbox(
const char* label, T& value,
auto& configEntry,
const char* help =
nullptr)
40 configEntry.SetValue(value);
51 static bool SliderInt(
const char* label, T& value,
auto& configEntry, T min, T max,
const char* help =
nullptr)
55 configEntry.SetValue(value);
67 static bool SliderFloat(
const char* label, T& value,
auto& configEntry,
float min,
float max,
68 const char* help =
nullptr)
72 configEntry.SetValue(value);
82 static bool InputText(
const char* label,
char* buffer,
size_t size, std::string& value,
auto& configEntry,
83 const char* help =
nullptr)
88 configEntry.SetValue(value);
bool SliderInt(const char *label, int *v, int min, int max, const char *fmt="%d")
Definition FUCK_API.h:1253
void Indent(float width=0.0f)
Definition FUCK_API.h:912
bool InputText(const char *label, char *buf, size_t buf_size, int flags=0)
Definition FUCK_API.h:1237
void Unindent(float width=0.0f)
Definition FUCK_API.h:917
void TextColored(const ImVec4 &color, const char *fmt,...)
Definition FUCK_API.h:1346
bool SliderFloat(const char *label, float *v, float min, float max, const char *fmt="%.3f")
Definition FUCK_API.h:1249
void SetTooltip(const char *fmt)
Definition FUCK_API.h:1335
bool Checkbox(const char *label, bool *v, bool alignFar=true, bool labelLeft=true)
Definition FUCK_API.h:1223
static constexpr ImVec4 RED
Definition st-fui.h:12
static bool Checkbox(const char *label, T &value, auto &configEntry, const char *help=nullptr)
Definition st-fui.h:36
static void RedTitleText(const std::string &text, float indent=75.f)
Definition st-fui.h:28
static void IndentTextColored(const ImVec4 &color, const std::string &text, float indent=120.f)
Definition st-fui.h:14
static bool InputText(const char *label, char *buffer, size_t size, std::string &value, auto &configEntry, const char *help=nullptr)
Definition st-fui.h:82
static bool SliderFloat(const char *label, T &value, auto &configEntry, float min, float max, const char *help=nullptr)
Definition st-fui.h:67
static void GreenTitleText(const std::string &text, float indent=75.f)
Definition st-fui.h:21
static bool SliderInt(const char *label, T &value, auto &configEntry, T min, T max, const char *help=nullptr)
Definition st-fui.h:51
static constexpr ImVec4 GREEN
Definition st-fui.h:11