1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Move imgui extension function to an appropriate place.

This commit is contained in:
Bartosz Taudul
2019-06-03 01:35:32 +02:00
parent c433e76c7a
commit ff6768986e
2 changed files with 14 additions and 14 deletions
+14
View File
@@ -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( "" );