-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcimgui_toggle.cpp
More file actions
43 lines (32 loc) · 1.92 KB
/
Copy pathcimgui_toggle.cpp
File metadata and controls
43 lines (32 loc) · 1.92 KB
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
40
41
42
43
#include "imgui_toggle.h"
#ifndef CIMTOGGLE_API
# define CIMTOGGLE_API
#endif
extern "C" {
CIMTOGGLE_API bool Toggle(const char* label, bool* v, const ImVec2 size ){
return ImGui::Toggle(label, v, size);
}
CIMTOGGLE_API bool ToggleFlag(const char* label, bool* v, ImGuiToggleFlags flags, const ImVec2 size){
return ImGui::Toggle(label, v, flags, size);
}
CIMTOGGLE_API bool ToggleAnim( const char* label, bool* v, ImGuiToggleFlags flags, float animation_duration, const ImVec2 size){
return ImGui::Toggle(label, v, flags, animation_duration, size);
}
CIMTOGGLE_API bool ToggleCfg( const char* label, bool* v, const ImGuiToggleConfig config){
return ImGui::Toggle(label, v, config);
}
CIMTOGGLE_API 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);
}
CIMTOGGLE_API 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"