Lines Matching refs:ImRect

1002 static ImRect           GetViewportRect();
1025 static void NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, const ImGuiID id);
2329 void ImGui::RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_display_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect)
2357 void ImGui::RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect)
2458 void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags)
2470 ImRect display_rect = bb;
2550 NavRectRel[0] = NavRectRel[1] = ImRect();
2595 ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs)
2621 void ImGui::SetNavIDWithRectRel(ImGuiID id, int nav_layer, const ImRect& rect_rel)
2673 window->NavRectRel[nav_layer] = ImRect(window->DC.LastItemRect.Min - window->Pos, window->DC.LastItemRect.Max - window->Pos);
2770 void ImGui::ItemSize(const ImRect& bb, float text_offset_y)
2778 bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg)
2862 bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id)
2884 bool ImGui::IsClippedEx(const ImRect& bb, ImGuiID id, bool clip_even_when_logged)
3941 ImRect unclipped_rect = window->ClipRect;
3984 ImRect bb(window->OuterRectClipped);
4012 ImRect rect_clipped(r_min, r_max);
4017 const ImRect rect_for_touch(rect_clipped.Min - g.Style.TouchExtraPadding, rect_clipped.Max + g.Style.TouchExtraPadding);
4315 static ImRect GetViewportRect()
4318 return ImRect(0.0f, 0.0f, g.IO.DisplaySize.x, g.IO.DisplaySize.y);
4404 ImRect bb(parent_window->DC.CursorPos, parent_window->DC.CursorPos + sz);
4413 RenderNavHighlight(ImRect(bb.Min - ImVec2(2,2), bb.Max + ImVec2(2,2)), g.NavId, ImGuiNavHighlightFlags_TypeThin);
4533 ImRect cr = g.NextWindowData.SizeConstraintRect;
4684 static ImRect GetResizeBorderRect(ImGuiWindow* window, int border_n, float perp_padding, float thickness)
4686 ImRect rect = window->Rect();
4688 if (border_n == 0) return ImRect(rect.Min.x + perp_padding, rect.Min.y - thickness, rect.Max.x - perp_padding, rect.Min.y + thickness); // Top
4689 if (border_n == 1) return ImRect(rect.Max.x - thickness, rect.Min.y + perp_padding, rect.Max.x + thickness, rect.Max.y - perp_padding); // Right
4690 if (border_n == 2) return ImRect(rect.Min.x + perp_padding, rect.Max.y - thickness, rect.Max.x - perp_padding, rect.Max.y + thickness); // Bottom
4691 if (border_n == 3) return ImRect(rect.Min.x - thickness, rect.Min.y + perp_padding, rect.Min.x + thickness, rect.Max.y - perp_padding); // Left
4693 return ImRect();
4722 ImRect resize_rect(corner - grip.InnerDir * grip_hover_outer_size, corner + grip.InnerDir * grip_hover_inner_size);
4750 ImRect border_rect = GetResizeBorderRect(window, border_n, grip_hover_inner_size, WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS);
4832 ImRect border_r = GetResizeBorderRect(window, border_held, rounding, 0.0f);
5046 ImRect title_bar_rect = window->TitleBarRect();
5194 ImRect viewport_rect(GetViewportRect());
5212 ImRect bb = window->Rect();
5224 const ImRect title_bar_rect = window->TitleBarRect();
5259 ImRect menu_bar_rect = window->MenuBarRect();
5294 ImRect bb = window->Rect();
5397 ImRect text_r = title_bar_rect;
5404 ImRect clip_rect = text_r;
6199 g.NextWindowData.SizeConstraintRect = ImRect(size_min, size_max);
6461 g.NavInitResultRectRel = ImRect(g.NavWindow->DC.LastItemRect.Min - g.NavWindow->Pos, g.NavWindow->DC.LastItemRect.Max - g.NavWindow->Pos);
6532 return window->ClipRect.Overlaps(ImRect(window->DC.CursorPos, window->DC.CursorPos + size));
6538 return window->ClipRect.Overlaps(ImRect(rect_min, rect_max));
6575 ImRect group_bb(group_data.BackupCursorPos, window->DC.CursorMaxPos);
7012 ImRect ImGui::GetWindowAllowedExtentRect(ImGuiWindow*)
7015 ImRect r_screen = GetViewportRect();
7022 ImVec2 ImGui::FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy)
7042 if (!r_outer.Contains(ImRect(pos, pos + size)))
7079 ImRect r_outer = GetWindowAllowedExtentRect(window);
7087 ImRect r_avoid;
7089 r_avoid = ImRect(-FLT_MAX, parent_window->Pos.y + parent_window->TitleBarHeight(), FLT_MAX, parent_window->Pos.y + parent_window->TitleBarHeight() + parent_window->MenuBarHeight());
7091 r_avoid = ImRect(parent_window->Pos.x + horizontal_overlap, -FLT_MAX, parent_window->Pos.x + parent_window->Size.x - horizontal_overlap - parent_window->ScrollbarSizes.x, FLT_MAX);
7096 ImRect r_avoid = ImRect(window->Pos.x - 1, window->Pos.y - 1, window->Pos.x + 1, window->Pos.y + 1);
7104 ImRect r_avoid;
7106 r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 16, ref_pos.y + 8);
7108 r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 24 * sc, ref_pos.y + 24 * sc); // FIXME: Hard-coded based on mouse cursor shape expectation. Exact dimension not very important.
7144 static void inline NavClampRectToVisibleAreaForMoveDir(ImGuiDir move_dir, ImRect& r, const ImRect& clip_rect)
7159 static bool NavScoreItem(ImGuiNavMoveResult* result, ImRect cand)
7166 const ImRect& curr = g.NavScoringRectScreen; // Current modified source rect (NB: we've applied Max.x = Min.x in NavUpdate() to inhibit the effect of having varied item width)
7291 static void ImGui::NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, const ImGuiID id)
7298 const ImRect nav_bb_rel(nav_bb.Min - window->Pos, nav_bb.Max - window->Pos);
7374 void ImGui::NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, const ImRect& bb_rel, ImGuiNavMoveFlags move_flags)
7392 ImRect bb_rel = window->NavRectRel[0];
7471 g.NavInitResultRectRel = ImRect();
7493 const ImRect& rect_rel = g.NavWindow->NavRectRel[g.NavLayer];
7495 ImRect visible_rect = GetViewportRect();
7540 static void NavScrollToBringItemIntoView(ImGuiWindow* window, const ImRect& item_rect)
7542 ImRect window_rect(window->InnerMainRect.Min - ImVec2(1, 1), window->InnerMainRect.Max + ImVec2(1, 1));
7812 ImRect window_rect_rel(window->InnerMainRect.Min - window->Pos - ImVec2(1,1), window->InnerMainRect.Max - window->Pos + ImVec2(1,1));
7824 ImRect nav_rect_rel = (g.NavWindow && !g.NavWindow->NavRectRel[g.NavLayer].IsInverted()) ? g.NavWindow->NavRectRel[g.NavLayer] : ImRect(0,0,0,0);
7825 g.NavScoringRectScreen = g.NavWindow ? ImRect(g.NavWindow->Pos + nav_rect_rel.Min, g.NavWindow->Pos + nav_rect_rel.Max) : GetViewportRect();
7870 ImRect rect_abs = ImRect(result->RectRel.Min + result->Window->Pos, result->RectRel.Max + result->Window->Pos);
7880 NavScrollToBringItemIntoView(result->Window->ParentWindow, ImRect(rect_abs.Min + delta_scroll, rect_abs.Max + delta_scroll));
7915 const ImRect& nav_rect_rel = window->NavRectRel[g.NavLayer];
8376 column->ClipRect = ImRect(clip_x1, -FLT_MAX, clip_x2, +FLT_MAX);
8413 const ImRect column_rect(ImVec2(x - column_hw, y1), ImVec2(x + column_hw, y2));
8647 bool ImGui::BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id)
8685 const ImRect& display_rect = (window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HasDisplayRect) ? window->DC.LastItemDisplayRect : window->DC.LastItemRect;
8718 ImRect r = g.DragDropTargetRect;
9332 ImRect clip_rect = pcmd->ClipRect;
9333 ImRect vtxs_rect;