29bool DefaultButton(
const char* name,
const ImVec2& size = ImVec2(0, 0));
31bool DefaultSelectable(
const char* label,
bool selected =
false, ImGuiSelectableFlags flags = 0,
32 const ImVec2& size = ImVec2(0, 0));
33bool DefaultSelectable(
const char* label,
bool* p_selected, ImGuiSelectableFlags flags = 0,
34 const ImVec2& size = ImVec2(0, 0));
37bool SliderFloat(
const char* label,
float* v,
float v_min,
float v_max,
const char* format =
"%.3f",
38 ImGuiSliderFlags flags = 0);
39bool SliderInt(
const char* label,
int* v,
int v_min,
int v_max,
const char* format =
"%d", ImGuiSliderFlags flags = 0);
40bool DragFloat(
const char* label,
float* v,
float v_speed = 1.0f,
float v_min = 0.0f,
float v_max = 0.0f,
41 const char* format =
"%.3f", ImGuiSliderFlags flags = 0);
42bool DragInt(
const char* label,
int* v,
float v_speed = 1.0f,
int v_min = 0,
int v_max = 0,
const char* format =
"%d",
43 ImGuiSliderFlags flags = 0);
45template <
typename... Args>
47 if (ImGui::IsItemHovered()) {
48 ImGui::BeginTooltip();
49 ImGui::Text(
"%s", fmt::format(fmt, std::forward<Args>(args)...).c_str());
Definition: application.h:47
Gui with sound
Definition: cqspgui.cpp:20
void SimpleTextTooltip(fmt::format_string< Args... > fmt, Args &&... args)
Definition: cqspgui.h:46
bool DefaultSelectable(const char *label, bool selected, ImGuiSelectableFlags flags, const ImVec2 &size)
Definition: cqspgui.cpp:39
void SetApplication(cqsp::engine::Application *context)
Definition: cqspgui.cpp:21
bool DragInt(const char *label, int *v, float v_speed, int v_min, int v_max, const char *format, ImGuiSliderFlags flags)
Definition: cqspgui.cpp:96
bool SmallDefaultButton(const char *label)
Definition: cqspgui.cpp:31
bool ArrowButton(const char *label, ImGuiDir dir)
Definition: cqspgui.cpp:63
bool DragFloat(const char *label, float *v, float v_speed, float v_min, float v_max, const char *format, ImGuiSliderFlags flags)
Definition: cqspgui.cpp:87
bool SliderInt(const char *label, int *v, int v_min, int v_max, const char *format, ImGuiSliderFlags flags)
Definition: cqspgui.cpp:79
bool DefaultButton(const char *name, const ImVec2 &size)
Definition: cqspgui.cpp:23
bool DefaultCheckbox(const char *label, bool *v)
Definition: cqspgui.cpp:55
bool SliderFloat(const char *label, float *v, float v_min, float v_max, const char *format, ImGuiSliderFlags flags)
Definition: cqspgui.cpp:71
@ Text
Definition: vfs.h:27