Lines Matching refs:clip_rect
151 const ImRect clip_rect = window->ClipRect;
154 if (text_pos.y <= clip_rect.Max.y)
161 int lines_skippable = (int)((clip_rect.Min.y - text_pos.y) / line_height);
3621 const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + size.x, frame_bb.Min.y + size.y); // Not using frame_bb.Max because we have adjusted size
3727 if (rect_pos.y > clip_rect.w + g.FontSize)
3729 if (rect_pos.y < clip_rect.y)
3742 rect.ClipWith(clip_rect);
3743 if (rect.Overlaps(clip_rect))
3753 draw_window->DrawList->AddText(g.Font, g.FontSize, render_pos - render_scroll, GetColorU32(ImGuiCol_Text), buf_display, buf_display + buf_display_len, 0.0f, is_multiline ? NULL : &clip_rect);
3759 if (cursor_is_visible && cursor_screen_rect.Overlaps(clip_rect))
3775 draw_window->DrawList->AddText(g.Font, g.FontSize, render_pos, GetColorU32(ImGuiCol_Text), buf_display, buf_end, 0.0f, is_multiline ? NULL : &clip_rect);
5536 ImRect clip_rect(ImFloor(bar_rect.Min.x + 0.5f), ImFloor(bar_rect.Min.y + window->WindowBorderSize + 0.5f), ImFloor(ImMax(bar_rect.Min.x, bar_rect.Max.x - window->WindowRounding) + 0.5f), ImFloor(bar_rect.Max.y + 0.5f));
5537 clip_rect.ClipWith(window->OuterRectClipped);
5538 PushClipRect(clip_rect.Min, clip_rect.Max, false);