mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Tooltip shortcut function.
This commit is contained in:
parent
845cf43711
commit
6b9ccb3077
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user