-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcimgui_toggle.cpp
More file actions
52 lines (39 loc) · 2.13 KB
/
cimgui_toggle.cpp
File metadata and controls
52 lines (39 loc) · 2.13 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
44
45
46
47
48
49
50
51
52
#include "imgui_toggle.h"
#ifndef CIMGUI_API
# if defined(_WIN32) || defined(__CYGWIN__)
# define CIMGUI_API __declspec(dllexport)
# else
# define CIMGUI_API __attribute__((visibility("default")))
# endif
#endif
#ifndef CIMTOGGLE_API
# define CIMTOGGLE_API CIMGUI_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"