-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcimgui_toggle.cpp
39 lines (29 loc) · 1.78 KB
/
cimgui_toggle.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "imgui_toggle.h"
extern "C" {
bool Toggle(const char* label, bool* v, const ImVec2 size ){
return ImGui::Toggle(label, v, size);
}
bool ToggleFlag(const char* label, bool* v, ImGuiToggleFlags flags, const ImVec2 size){
return ImGui::Toggle(label, v, flags, size);
}
bool ToggleAnim( const char* label, bool* v, ImGuiToggleFlags flags, float animation_duration, const ImVec2 size){
return ImGui::Toggle(label, v, flags, animation_duration, size);
}
bool ToggleCfg( const char* label, bool* v, const ImGuiToggleConfig config){
return ImGui::Toggle(label, v, config);
}
bool ToggleRound(const char* label, bool* v, ImGuiToggleFlags flags, float frame_rounding, float knob_rounding, const ImVec2 size){
return ImGui::Toggle(label, v, flags, frame_rounding, knob_rounding, size);
}
bool ToggleAnimRound(const char* label, bool* v, ImGuiToggleFlags flags, float animation_duration, float frame_rounding, float knob_rounding, const ImVec2 size){
return ImGui::Toggle(label, v, flags, animation_duration, frame_rounding, knob_rounding, size);
}
/*
IMGUI_API bool Toggle(const char* label, bool* v, const ImVec2& size = ImVec2());
IMGUI_API bool Toggle(const char* label, bool* v, ImGuiToggleFlags flags, const ImVec2& size = ImVec2());
IMGUI_API bool Toggle(const char* label, bool* v, ImGuiToggleFlags flags, float animation_duration, const ImVec2& size = ImVec2());
IMGUI_API bool Toggle(const char* label, bool* v, const ImGuiToggleConfig& config);
IMGUI_API bool Toggle(const char* label, bool* v, ImGuiToggleFlags flags, float frame_rounding, float knob_rounding, const ImVec2& size = ImVec2());
IMGUI_API bool Toggle(const char* label, bool* v, ImGuiToggleFlags flags, float animation_duration, float frame_rounding, float knob_rounding, const ImVec2& size = ImVec2());
*/
} // extern "C"