Lines Matching refs:clip_rect
1194 ImVec4 clip_rect = _ClipRectStack.back();
1197 clip_rect.x = ImMax(clip_rect.x, cpu_fine_clip_rect->x);
1198 clip_rect.y = ImMax(clip_rect.y, cpu_fine_clip_rect->y);
1199 clip_rect.z = ImMin(clip_rect.z, cpu_fine_clip_rect->z);
1200 clip_rect.w = ImMin(clip_rect.w, cpu_fine_clip_rect->w);
1202 font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip_rect != NULL);
2749 void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const
2759 if (y > clip_rect.w)
2769 if (y + line_height < clip_rect.y && !word_wrap_enabled)
2770 while (y + line_height < clip_rect.y && s < text_end)
2783 while (y_end < clip_rect.w && s_end < text_end)
2851 if (y > clip_rect.w)
2867 // We don't do a second finer clipping test on the Y axis as we've already skipped anything before clip_rect.y and exit once we pass clip_rect.w
2872 if (x1 <= clip_rect.z && x2 >= clip_rect.x)
2883 if (x1 < clip_rect.x)
2885 u1 = u1 + (1.0f - (x2 - clip_rect.x) / (x2 - x1)) * (u2 - u1);
2886 x1 = clip_rect.x;
2888 if (y1 < clip_rect.y)
2890 v1 = v1 + (1.0f - (y2 - clip_rect.y) / (y2 - y1)) * (v2 - v1);
2891 y1 = clip_rect.y;
2893 if (x2 > clip_rect.z)
2895 u2 = u1 + ((clip_rect.z - x1) / (x2 - x1)) * (u2 - u1);
2896 x2 = clip_rect.z;
2898 if (y2 > clip_rect.w)
2900 v2 = v1 + ((clip_rect.w - y1) / (y2 - y1)) * (v2 - v1);
2901 y2 = clip_rect.w;