diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-06-03 02:35:32 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-06-03 02:35:32 +0300 |
commit | ff6768986ed1e00163aef5589719c9de8aaca119 (patch) | |
tree | 1a82630e8cc6a7def7b39f0bc8ab8bfb18177582 /server/TracyImGui.hpp | |
parent | c433e76c7ae23ca46be86fc8183224322d5ad4dd (diff) |
Move imgui extension function to an appropriate place.
Diffstat (limited to 'server/TracyImGui.hpp')
-rw-r--r-- | server/TracyImGui.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index cd497f1b..95d0b809 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -19,6 +19,20 @@ namespace tracy ImGui::TextUnformatted( text ); } + static inline void TextDisabledUnformatted( const char* begin, const char* end = nullptr ) + { + ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] ); + ImGui::TextUnformatted( begin, end ); + ImGui::PopStyleColor(); + } + + static inline void TextFocused( const char* label, const char* value ) + { + TextDisabledUnformatted( label ); + ImGui::SameLine(); + ImGui::TextUnformatted( value ); + } + static inline void DrawWaitingDots( double time ) { ImGui::TextUnformatted( "" ); |