xo-imgui: imgui_ex4: prep gc history bars for rich tooltips

This commit is contained in:
Roland Conybeare 2025-11-12 15:48:15 -05:00
commit 51a1ce7d0f
5 changed files with 152 additions and 126 deletions

View file

@ -18,7 +18,9 @@ ImRect::draw_filled_rect_with_label(const char * text,
ImGui::SetCursorScreenPos(rect.top_left());
ImGui::InvisibleButton("ttbutton", ImVec2(rect.width(), rect.height()));
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("%s", tooltip);
ImGui::BeginTooltip();
ImGui::Text("%s", tooltip);
ImGui::EndTooltip();
}
}