mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Move DrawHelpMarker to TracyImGui.hpp.
This commit is contained in:
parent
358148920a
commit
c427214f46
@ -267,6 +267,20 @@ static const ImVec4 SyntaxColorsDimmed[] = {
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
|
||||
[[maybe_unused]] void tracy_force_inline DrawHelpMarker( const char* desc )
|
||||
{
|
||||
TextDisabledUnformatted( "(?)" );
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
const auto ty = ImGui::GetTextLineHeight();
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::PushTextWrapPos( 450.0f * ty / 15.f );
|
||||
ImGui::TextUnformatted( desc );
|
||||
ImGui::PopTextWrapPos();
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -250,20 +250,6 @@ bool View::ViewDispatch( const char* fileName, int line, uint64_t symAddr )
|
||||
}
|
||||
}
|
||||
|
||||
void View::DrawHelpMarker( const char* desc ) const
|
||||
{
|
||||
TextDisabledUnformatted( "(?)" );
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
const auto ty = ImGui::GetTextLineHeight();
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::PushTextWrapPos( 450.0f * ty / 15.f );
|
||||
ImGui::TextUnformatted( desc );
|
||||
ImGui::PopTextWrapPos();
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
}
|
||||
|
||||
static const char* CompressionName[] = {
|
||||
"LZ4",
|
||||
"LZ4 HC",
|
||||
|
@ -183,8 +183,6 @@ private:
|
||||
|
||||
const char* ShortenNamespace( const char* name ) const;
|
||||
|
||||
void DrawHelpMarker( const char* desc ) const;
|
||||
|
||||
bool DrawImpl();
|
||||
void DrawNotificationArea();
|
||||
bool DrawConnection();
|
||||
|
Loading…
Reference in New Issue
Block a user