diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-03-08 20:39:41 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-03-08 20:39:41 +0300 |
commit | 9fd8a20d7c5daa3aae2dc0c36466a671b98bd412 (patch) | |
tree | b59ee29b1a0dfa3afebc067cf7f5b77e7a123503 /server/TracyImGui.hpp | |
parent | e004dc85a9ccf96a62c849a0e837f9dc16ca5eed (diff) |
Use small checkbox in appropriate places.
Diffstat (limited to 'server/TracyImGui.hpp')
-rw-r--r-- | server/TracyImGui.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index 41f42df2..b48be85a 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -32,6 +32,14 @@ namespace tracy draw->AddCircleFilled( wpos + ImVec2( w * 0.5f + ty, h ), ty * ( 0.15f + 0.2f * ( pow( cos( time * 3.5f - 0.3f ), 16.f ) ) ), 0xFFBBBBBB, 12 ); } + static inline bool SmallCheckbox( const char* label, bool* var ) + { + ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) ); + auto ret = ImGui::Checkbox( label, var ); + ImGui::PopStyleVar(); + return ret; + } + } #endif |