Home
last modified time | relevance | path

Searched refs:clip_rect (Results 1 – 25 of 27) sorted by relevance

12

/external/mesa3d/src/intel/tools/imgui/
Dimgui_impl_opengl3.cpp196 …ImVec4 clip_rect = ImVec4(pcmd->ClipRect.x - pos.x, pcmd->ClipRect.y - pos.y, pcmd->ClipRect.z - p… in ImGui_ImplOpenGL3_RenderDrawData() local
197 …if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0… in ImGui_ImplOpenGL3_RenderDrawData()
200 …glScissor((int)clip_rect.x, (int)(fb_height - clip_rect.w), (int)(clip_rect.z - clip_rect.x), (int… in ImGui_ImplOpenGL3_RenderDrawData()
/external/pdfium/core/fxge/dib/
Dcfx_imagetransformer.cpp206 bool InStretchBounds(const FX_RECT& clip_rect, int col, int row) { in InStretchBounds() argument
207 return col >= 0 && col <= clip_rect.Width() && row >= 0 && in InStretchBounds()
208 row <= clip_rect.Height(); in InStretchBounds()
211 void AdjustCoords(const FX_RECT& clip_rect, int* col, int* row) { in AdjustCoords() argument
214 if (src_col == clip_rect.Width()) in AdjustCoords()
216 if (src_row == clip_rect.Height()) in AdjustCoords()
225 const FX_RECT& clip_rect, in DoBilinearLoop() argument
239 if (LIKELY(InStretchBounds(clip_rect, d.src_col_l, d.src_row_l))) { in DoBilinearLoop()
240 AdjustCoords(clip_rect, &d.src_col_l, &d.src_row_l); in DoBilinearLoop()
243 AdjustCoords(clip_rect, &d.src_col_r, &d.src_row_r); in DoBilinearLoop()
[all …]
Dcstretchengine_unittest.cpp19 FX_RECT clip_rect; in TEST() local
27 CStretchEngine engine(nullptr, FXDIB_8bppRgb, 500, 500, clip_rect, dib_source, in TEST()
Dcstretchengine.cpp227 const FX_RECT& clip_rect, in CStretchEngine() argument
241 m_DestClip(clip_rect) { in CStretchEngine()
242 uint32_t size = clip_rect.Width(); in CStretchEngine()
273 double src_left = scale_x * (clip_rect.left + base_x); in CStretchEngine()
274 double src_right = scale_x * (clip_rect.right + base_x); in CStretchEngine()
275 double src_top = scale_y * (clip_rect.top + base_y); in CStretchEngine()
276 double src_bottom = scale_y * (clip_rect.bottom + base_y); in CStretchEngine()
Dcstretchengine.h27 const FX_RECT& clip_rect,
Dcfx_dibbase.cpp1223 FX_RECT clip_rect(0, 0, abs(dest_width), abs(dest_height)); in StretchTo() local
1225 clip_rect.Intersect(*pClip); in StretchTo()
1227 if (clip_rect.IsEmpty()) in StretchTo()
1231 return Clone(&clip_rect); in StretchTo()
1235 clip_rect, options); in StretchTo()
/external/pdfium/fpdfsdk/
Dfpdf_transformpage_embeddertest.cpp380 const FS_RECTF clip_rect = {0.0f, 0.0f, 20.0f, 10.0f}; in TEST_F() local
389 EXPECT_FALSE(FPDFPage_TransFormWithClip(nullptr, nullptr, &clip_rect)); in TEST_F()
390 EXPECT_FALSE(FPDFPage_TransFormWithClip(nullptr, &half_matrix, &clip_rect)); in TEST_F()
393 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, nullptr, &clip_rect)); in TEST_F()
394 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, &half_matrix, &clip_rect)); in TEST_F()
401 const FS_RECTF clip_rect = {0.0f, 0.0f, 20.0f, 10.0f}; in TEST_F() local
409 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, nullptr, &clip_rect)); in TEST_F()
410 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, &half_matrix, &clip_rect)); in TEST_F()
Dfpdf_view.cpp638 FX_RECT clip_rect = clipping_rect.ToFxRect(); in FPDF_RenderPageBitmapWithMatrix() local
644 CPDFSDK_RenderPage(pContext, pPage, transform_matrix, clip_rect, flags); in FPDF_RenderPageBitmapWithMatrix()
/external/pdfium/core/fxge/win32/
Dfx_win32_device.cpp1223 FX_RECT clip_rect(left, top, left + src_rect.Width(), in SetDIBits() local
1226 top - src_rect.top, width, height, &clip_rect, in SetDIBits()
1300 FX_RECT clip_rect = image_rect; in StretchDIBits() local
1301 clip_rect.Intersect(*pClipRect); in StretchDIBits()
1302 clip_rect.Offset(-image_rect.left, -image_rect.top); in StretchDIBits()
1303 int clip_width = clip_rect.Width(), clip_height = clip_rect.Height(); in StretchDIBits()
1305 dest_width, dest_height, FXDIB_ResampleOptions(), &clip_rect)); in StretchDIBits()
1311 !GetDIBits(background, image_rect.left + clip_rect.left, in StretchDIBits()
1312 image_rect.top + clip_rect.top) || in StretchDIBits()
1320 return SetDIBits(background, 0, src_rect, image_rect.left + clip_rect.left, in StretchDIBits()
[all …]
Dfx_win32_print.cpp81 FX_RECT clip_rect(left, top, left + src_rect.Width(), in SetDIBits() local
85 pSource->GetHeight(), &clip_rect, in SetDIBits()
/external/mesa3d/src/imgui/
Dimgui_draw.cpp1194 ImVec4 clip_rect = _ClipRectStack.back(); in AddText() local
1197 clip_rect.x = ImMax(clip_rect.x, cpu_fine_clip_rect->x); in AddText()
1198 clip_rect.y = ImMax(clip_rect.y, cpu_fine_clip_rect->y); in AddText()
1199 clip_rect.z = ImMin(clip_rect.z, cpu_fine_clip_rect->z); in AddText()
1200 clip_rect.w = ImMin(clip_rect.w, cpu_fine_clip_rect->w); in AddText()
1202 …font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_… in AddText()
2749 …ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* tex… in RenderText() argument
2759 if (y > clip_rect.w) in RenderText()
2769 if (y + line_height < clip_rect.y && !word_wrap_enabled) in RenderText()
2770 while (y + line_height < clip_rect.y && s < text_end) in RenderText()
[all …]
Dimgui.cpp2329 …* text_display_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) in RenderTextClippedEx() argument
2335 const ImVec2* clip_min = clip_rect ? &clip_rect->Min : &pos_min; in RenderTextClippedEx()
2336 const ImVec2* clip_max = clip_rect ? &clip_rect->Max : &pos_max; in RenderTextClippedEx()
2338 if (clip_rect) // If we had no explicit clipping rectangle then pos==clip_min in RenderTextClippedEx()
2357 …nst char* text_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) in RenderTextClipped() argument
2367 …(window->DrawList, pos_min, pos_max, text, text_display_end, text_size_if_known, align, clip_rect); in RenderTextClipped()
5404 ImRect clip_rect = text_r; in Begin() local
5405clip_rect.Max.x = window->Pos.x + window->Size.x - (p_open ? title_bar_rect.GetHeight() - 3 : styl… in Begin()
5406 …derTextClipped(text_r.Min, text_r.Max, name, NULL, &text_size, style.WindowTitleAlign, &clip_rect); in Begin()
5411 …r.Max + off, UNSAVED_DOCUMENT_MARKER, NULL, NULL, ImVec2(0, style.WindowTitleAlign.y), &clip_rect); in Begin()
[all …]
Dimgui_widgets.cpp151 const ImRect clip_rect = window->ClipRect; in TextUnformatted() local
154 if (text_pos.y <= clip_rect.Max.y) in TextUnformatted()
161 int lines_skippable = (int)((clip_rect.Min.y - text_pos.y) / line_height); in TextUnformatted()
3621 …const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + size.x, frame_bb.Min.y + s… in InputTextEx() local
3727 if (rect_pos.y > clip_rect.w + g.FontSize) in InputTextEx()
3729 if (rect_pos.y < clip_rect.y) in InputTextEx()
3742 rect.ClipWith(clip_rect); in InputTextEx()
3743 if (rect.Overlaps(clip_rect)) in InputTextEx()
3753 …mGuiCol_Text), buf_display, buf_display + buf_display_len, 0.0f, is_multiline ? NULL : &clip_rect); in InputTextEx()
3759 if (cursor_is_visible && cursor_screen_rect.Overlaps(clip_rect)) in InputTextEx()
[all …]
/external/pdfium/core/fpdfdoc/
Dcpdf_annotlist.cpp231 FX_RECT* clip_rect) { in DisplayPass() argument
258 if (clip_rect) { in DisplayPass()
261 annot_rect.Intersect(*clip_rect); in DisplayPass()
Dcpdf_annotlist.h60 FX_RECT* clip_rect);
/external/pdfium/core/fpdfapi/render/
Dcpdf_rendershading.h25 const FX_RECT& clip_rect,
Dcpdf_renderstatus.cpp204 CFX_FloatRect clip_rect = mtObj2Device.GetInverse().TransformRect( in RenderObjectList() local
214 if (pCurObj->GetRect().left > clip_rect.right || in RenderObjectList()
215 pCurObj->GetRect().right < clip_rect.left || in RenderObjectList()
216 pCurObj->GetRect().bottom > clip_rect.top || in RenderObjectList()
217 pCurObj->GetRect().top < clip_rect.bottom) { in RenderObjectList()
Dcpdf_rendershading.cpp863 const FX_RECT& clip_rect, in Draw() argument
887 FX_RECT clip_rect_bbox = clip_rect; in Draw()
/external/pdfium/core/fxge/
Drenderdevicedriver_iface.cpp79 const FX_RECT& clip_rect, in DrawShading() argument
Drenderdevicedriver_iface.h109 const FX_RECT& clip_rect,
/external/pdfium/core/fxge/skia/
Dfx_skia_device.h145 const FX_RECT& clip_rect,
Dfx_skia_device.cpp2117 const FX_RECT& clip_rect, in DrawShading() argument
2173 SkRect skRect = SkRect::MakeLTRB(clip_rect.left, clip_rect.top, in DrawShading()
2174 clip_rect.right, clip_rect.bottom); in DrawShading()
/external/skia/experimental/pvg/
Ddraw_msg.proto256 ClipRect clip_rect = 5; field
/external/skqp/experimental/pvg/
Ddraw_msg.proto256 ClipRect clip_rect = 5; field
/external/pdfium/core/fxge/agg/
Dfx_agg_driver.cpp1439 FX_RECT clip_rect; in FillRectWithBlend() local
1440 GetClipBox(&clip_rect); in FillRectWithBlend()
1441 FX_RECT draw_rect = clip_rect; in FillRectWithBlend()
1459 fill_color, draw_rect.left - clip_rect.left, in FillRectWithBlend()
1460 draw_rect.top - clip_rect.top, BlendMode::kNormal, in FillRectWithBlend()

12