1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Tooltip shortcut function.

This commit is contained in:
Bartosz Taudul 2022-01-01 16:10:49 +01:00
parent 845cf43711
commit 6b9ccb3077
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -254,6 +254,14 @@ static const ImVec4 SyntaxColorsDimmed[] = {
draw->AddPolyline( data, 3, col, 0, thickness );
}
[[maybe_unused]] static tracy_force_inline void TooltipIfHovered( const char* text )
{
if( !ImGui::IsItemHovered() ) return;
ImGui::BeginTooltip();
ImGui::TextUnformatted( text );
ImGui::EndTooltip();
}
}
#endif