mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +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();
|
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
|
#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[] = {
|
static const char* CompressionName[] = {
|
||||||
"LZ4",
|
"LZ4",
|
||||||
"LZ4 HC",
|
"LZ4 HC",
|
||||||
|
@ -183,8 +183,6 @@ private:
|
|||||||
|
|
||||||
const char* ShortenNamespace( const char* name ) const;
|
const char* ShortenNamespace( const char* name ) const;
|
||||||
|
|
||||||
void DrawHelpMarker( const char* desc ) const;
|
|
||||||
|
|
||||||
bool DrawImpl();
|
bool DrawImpl();
|
||||||
void DrawNotificationArea();
|
void DrawNotificationArea();
|
||||||
bool DrawConnection();
|
bool DrawConnection();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user