Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-03-08 20:39:41 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-03-08 20:39:41 +0300
commit9fd8a20d7c5daa3aae2dc0c36466a671b98bd412 (patch)
treeb59ee29b1a0dfa3afebc067cf7f5b77e7a123503 /server/TracyImGui.hpp
parente004dc85a9ccf96a62c849a0e837f9dc16ca5eed (diff)
Use small checkbox in appropriate places.
Diffstat (limited to 'server/TracyImGui.hpp')
-rw-r--r--server/TracyImGui.hpp8
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