mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +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 );
|
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
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user