|
|
|
@ -3380,6 +3380,14 @@ ImVec2 ImGui::CalcItemRectClosestPoint(const ImVec2& pos, bool on_edge, float ou
|
|
|
|
|
return rect.GetClosestPoint(pos, on_edge);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static ImRect GetVisibleRect()
|
|
|
|
|
{
|
|
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
|
if (g.IO.DisplayVisibleMin.x != g.IO.DisplayVisibleMax.x && g.IO.DisplayVisibleMin.y != g.IO.DisplayVisibleMax.y)
|
|
|
|
|
return ImRect(g.IO.DisplayVisibleMin, g.IO.DisplayVisibleMax);
|
|
|
|
|
return ImRect(0.0f, 0.0f, g.IO.DisplaySize.x, g.IO.DisplaySize.y);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Tooltip is stored and turned into a BeginTooltip()/EndTooltip() sequence at the end of the frame. Each call override previous value.
|
|
|
|
|
void ImGui::SetTooltipV(const char* fmt, va_list args)
|
|
|
|
|
{
|
|
|
|
@ -3395,14 +3403,6 @@ void ImGui::SetTooltip(const char* fmt, ...)
|
|
|
|
|
va_end(args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static ImRect GetVisibleRect()
|
|
|
|
|
{
|
|
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
|
if (g.IO.DisplayVisibleMin.x != g.IO.DisplayVisibleMax.x && g.IO.DisplayVisibleMin.y != g.IO.DisplayVisibleMax.y)
|
|
|
|
|
return ImRect(g.IO.DisplayVisibleMin, g.IO.DisplayVisibleMax);
|
|
|
|
|
return ImRect(0.0f, 0.0f, g.IO.DisplaySize.x, g.IO.DisplaySize.y);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ImGui::BeginTooltip()
|
|
|
|
|
{
|
|
|
|
|
ImGuiWindowFlags flags = ImGuiWindowFlags_Tooltip|ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoMove|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoSavedSettings|ImGuiWindowFlags_AlwaysAutoResize;
|
|
|
|
|