/external/pdfium/core/fxcrt/ |
D | fx_coordinates.cpp | 133 CFX_FloatRect::CFX_FloatRect(const FX_RECT& rect) in CFX_FloatRect() function in CFX_FloatRect 136 CFX_FloatRect::CFX_FloatRect(const CFX_PointF& point) in CFX_FloatRect() function in CFX_FloatRect 140 CFX_FloatRect CFX_FloatRect::GetBBox(pdfium::span<const CFX_PointF> pPoints) { in GetBBox() 142 return CFX_FloatRect(); in GetBBox() 154 return CFX_FloatRect(min_x, min_y, max_x, max_y); in GetBBox() 157 void CFX_FloatRect::Normalize() { in Normalize() 164 void CFX_FloatRect::Intersect(const CFX_FloatRect& other_rect) { in Intersect() 166 CFX_FloatRect other = other_rect; in Intersect() 173 *this = CFX_FloatRect(); in Intersect() 176 void CFX_FloatRect::Union(const CFX_FloatRect& other_rect) { in Union() [all …]
|
D | fx_coordinates_unittest.cpp | 23 TEST(CFX_FloatRect, FromFXRect) { in TEST() argument 25 CFX_FloatRect rect(downwards); in TEST() 32 TEST(CFX_FloatRect, GetBBox) { in TEST() argument 33 CFX_FloatRect rect = CFX_FloatRect::GetBBox({nullptr, 0}); in TEST() 41 rect = CFX_FloatRect::GetBBox(pdfium::make_span(data).first(0)); in TEST() 46 rect = CFX_FloatRect::GetBBox(data); in TEST() 54 rect = CFX_FloatRect::GetBBox(pdfium::make_span(data).first(2)); in TEST() 60 rect = CFX_FloatRect::GetBBox(data); in TEST() 67 rect = CFX_FloatRect::GetBBox(data); in TEST() 74 rect = CFX_FloatRect::GetBBox(data); in TEST() [all …]
|
D | fx_coordinates.h | 200 class CFX_FloatRect { 202 constexpr CFX_FloatRect() = default; 203 constexpr CFX_FloatRect(float l, float b, float r, float t) in CFX_FloatRect() function 206 explicit CFX_FloatRect(const FX_RECT& rect); 207 explicit CFX_FloatRect(const CFX_PointF& point); 209 static CFX_FloatRect GetBBox(pdfium::span<const CFX_PointF> pPoints); 215 bool Contains(const CFX_FloatRect& other_rect) const; 217 void Intersect(const CFX_FloatRect& other_rect); 218 void Union(const CFX_FloatRect& other_rect); 234 CFX_FloatRect GetCenterSquare() const; [all …]
|
/external/pdfium/core/fxge/ |
D | cfx_path_unittest.cpp | 15 absl::optional<CFX_FloatRect> rect = path.GetRect(nullptr); in TEST() 17 EXPECT_EQ(CFX_FloatRect(1, 2, 3, 5), rect.value()); in TEST() 18 EXPECT_EQ(CFX_FloatRect(1, 2, 3, 5), path.GetBoundingBox()); in TEST() 23 EXPECT_EQ(CFX_FloatRect(61, 74, 63, 80), rect.value()); in TEST() 24 EXPECT_EQ(CFX_FloatRect(1, 2, 3, 5), path.GetBoundingBox()); in TEST() 29 EXPECT_EQ(CFX_FloatRect(), path.GetBoundingBox()); in TEST() 40 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), rect.value()); in TEST() 41 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), path.GetBoundingBox()); in TEST() 49 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), rect.value()); in TEST() 50 EXPECT_EQ(CFX_FloatRect(0, 0, 1, 1), path.GetBoundingBox()); in TEST() [all …]
|
/external/pdfium/fpdfsdk/pwl/ |
D | cpwl_list_ctrl.h | 34 virtual void OnInvalidateRect(const CFX_FloatRect& rect) = 0; 53 CFX_FloatRect GetItemRect(int32_t nIndex) const; 57 CFX_FloatRect GetContentRect() const; 69 CFX_FloatRect GetPlateRect() const { return m_rcPlate; } in GetPlateRect() 70 void SetPlateRect(const CFX_FloatRect& rect); 91 void SetRect(const CFX_FloatRect& rect) { m_rcListItem = rect; } in SetRect() 97 CFX_FloatRect GetRect() const { return m_rcListItem; } in GetRect() 106 CFX_FloatRect m_rcListItem; 134 CFX_FloatRect InToOut(const CFX_FloatRect& rect) const; 135 CFX_FloatRect OutToIn(const CFX_FloatRect& rect) const; [all …]
|
D | cpwl_list_ctrl.cpp | 111 CFX_FloatRect rcPlate = m_rcPlate; in InToOut() 117 CFX_FloatRect rcPlate = m_rcPlate; in OutToIn() 122 CFX_FloatRect CPWL_ListCtrl::InToOut(const CFX_FloatRect& rect) const { in InToOut() 125 return CFX_FloatRect(ptLeftBottom.x, ptLeftBottom.y, ptRightTop.x, in InToOut() 129 CFX_FloatRect CPWL_ListCtrl::OutToIn(const CFX_FloatRect& rect) const { in OutToIn() 132 return CFX_FloatRect(ptLeftBottom.x, ptLeftBottom.y, ptRightTop.x, in OutToIn() 144 CFX_FloatRect CPWL_ListCtrl::InnerToOuter(const CFX_FloatRect& rect) const { in InnerToOuter() 147 return CFX_FloatRect(ptLeftTop.x, ptRightBottom.y, ptRightBottom.x, in InnerToOuter() 151 CFX_FloatRect CPWL_ListCtrl::OuterToInner(const CFX_FloatRect& rect) const { in OuterToInner() 154 return CFX_FloatRect(ptLeftTop.x, ptRightBottom.y, ptRightBottom.x, in OuterToInner() [all …]
|
D | cpwl_scroll_bar.cpp | 129 CFX_FloatRect rcClient = GetClientRect(); in RePosChildWnd() 130 CFX_FloatRect rcMinButton; in RePosChildWnd() 131 CFX_FloatRect rcMaxButton; in RePosChildWnd() 134 rcMinButton = CFX_FloatRect(rcClient.left, rcClient.top - kButtonWidth, in RePosChildWnd() 136 rcMaxButton = CFX_FloatRect(rcClient.left, rcClient.bottom, rcClient.right, in RePosChildWnd() 142 rcMinButton = CFX_FloatRect(rcClient.left, rcClient.top - fBWidth, in RePosChildWnd() 144 rcMaxButton = CFX_FloatRect(rcClient.left, rcClient.bottom, in RePosChildWnd() 169 CFX_FloatRect rectWnd = GetWindowRect(); in DrawThisAppearance() 200 CFX_FloatRect rcClient = GetClientRect(); in OnLButtonDown() 201 CFX_FloatRect rcPosButton = m_pPosButton->GetWindowRect(); in OnLButtonDown() [all …]
|
D | cpwl_wnd.cpp | 191 bool CPWL_Wnd::Move(const CFX_FloatRect& rcNew, bool bReset, bool bRefresh) { in Move() 195 CFX_FloatRect rcOld = GetWindowRect(); in Move() 213 bool CPWL_Wnd::InvalidateRectMove(const CFX_FloatRect& rcOld, in InvalidateRectMove() 214 const CFX_FloatRect& rcNew) { in InvalidateRectMove() 215 CFX_FloatRect rcUnion = rcOld; in InvalidateRectMove() 231 CFX_FloatRect rectWnd = GetWindowRect(); in DrawThisAppearance() 257 bool CPWL_Wnd::InvalidateRect(const CFX_FloatRect* pRect) { in InvalidateRect() 262 CFX_FloatRect rcRefresh = pRect ? *pRect : GetWindowRect(); in InvalidateRect() 264 CFX_FloatRect rcClip = GetClipRect(); in InvalidateRect() 269 CFX_FloatRect rcWin = PWLtoWnd(rcRefresh); in InvalidateRect() [all …]
|
D | cpwl_wnd.h | 103 CFX_FloatRect rcRectWnd; 139 virtual bool InvalidateRect(const CFX_FloatRect* pRect); 181 virtual CFX_FloatRect GetFocusRect() const; 182 virtual CFX_FloatRect GetClientRect() const; 191 bool Move(const CFX_FloatRect& rcNew, bool bReset, bool bRefresh); 198 CFX_FloatRect GetWindowRect() const; 203 void SetClipRect(const CFX_FloatRect& rect); 249 bool InvalidateRectMove(const CFX_FloatRect& rcOld, 250 const CFX_FloatRect& rcNew); 268 const CFX_FloatRect& GetClipRect() const; [all …]
|
D | cpwl_edit_impl.h | 51 const CFX_FloatRect& rcClip, 66 void SetPlateRect(const CFX_FloatRect& rect); 116 CFX_FloatRect GetContentRect() const; 145 void Push(const CPVT_WordRange& linerange, const CFX_FloatRect& rect); 147 std::vector<CFX_FloatRect>* GetRefreshRects(); 152 LineRect(const CPVT_WordRange& wrLine, const CFX_FloatRect& rcLine) in LineRect() 156 CFX_FloatRect m_rcLine; 159 void Add(const CFX_FloatRect& new_rect); 163 std::vector<CFX_FloatRect> m_RefreshRects; 258 CFX_FloatRect VTToEdit(const CFX_FloatRect& rect) const; [all …]
|
D | cpwl_caret.cpp | 29 CFX_FloatRect rcRect = GetCaretRect(); in DrawThisAppearance() 30 CFX_FloatRect rcClip = GetClipRect(); in DrawThisAppearance() 63 CFX_FloatRect CPWL_Caret::GetCaretRect() const { in GetCaretRect() 64 return CFX_FloatRect(m_ptFoot.x, m_ptFoot.y, m_ptHead.x + m_fWidth, in GetCaretRect() 114 bool CPWL_Caret::InvalidateRect(const CFX_FloatRect* pRect) { in InvalidateRect() 118 CFX_FloatRect rcRefresh = *pRect; in InvalidateRect()
|
D | cpwl_caret.h | 24 bool InvalidateRect(const CFX_FloatRect* pRect) override; 33 void SetInvalidRect(const CFX_FloatRect& rc) { m_rcInvalid = rc; } in SetInvalidRect() 36 CFX_FloatRect GetCaretRect() const; 42 CFX_FloatRect m_rcInvalid;
|
D | cpwl_combo_box.cpp | 151 ecp.rcRectWnd = CFX_FloatRect(); in CreateEdit() 189 lcp.rcRectWnd = CFX_FloatRect(); in CreateListBox() 207 const CFX_FloatRect rcClient = GetClientRect(); in RePosChildWnd() 212 CFX_FloatRect rcList = CPWL_Wnd::GetWindowRect(); in RePosChildWnd() 213 CFX_FloatRect rcButton = rcClient; in RePosChildWnd() 216 CFX_FloatRect rcEdit = rcClient; in RePosChildWnd() 254 CFX_FloatRect rcButton = rcClient; in RePosChildWnd() 263 CFX_FloatRect rcEdit = rcClient; in RePosChildWnd() 286 CFX_FloatRect CPWL_ComboBox::GetFocusRect() const { in GetFocusRect() 287 return CFX_FloatRect(); in GetFocusRect() [all …]
|
D | cpwl_list_box.cpp | 49 CFX_FloatRect rcPlate = m_pListCtrl->GetPlateRect(); in DrawThisAppearance() 50 CFX_FloatRect rcList = GetListRect(); in DrawThisAppearance() 51 CFX_FloatRect rcClient = GetClientRect(); in DrawThisAppearance() 54 CFX_FloatRect rcItem = m_pListCtrl->GetItemRect(i); in DrawThisAppearance() 60 CFX_FloatRect rcContent = pEdit->GetContentRect(); in DrawThisAppearance() 225 CFX_FloatRect CPWL_ListBox::GetFocusRect() const { in GetFocusRect() 227 CFX_FloatRect rcCaret = m_pListCtrl->GetItemRect(m_pListCtrl->GetCaret()); in GetFocusRect() 289 void CPWL_ListBox::OnInvalidateRect(const CFX_FloatRect& rect) { in OnInvalidateRect() 338 CFX_FloatRect CPWL_ListBox::GetContentRect() const { in GetContentRect() 346 CFX_FloatRect CPWL_ListBox::GetListRect() const { in GetListRect()
|
/external/pdfium/fpdfsdk/ |
D | fpdf_flatten.cpp | 41 bool IsValidRect(const CFX_FloatRect& rect, const CFX_FloatRect& rcPage) { in IsValidRect() 58 std::vector<CFX_FloatRect>* pRectArray) { in GetContentsRect() 63 const CFX_FloatRect& rc = pPageObject->GetRect(); in GetContentsRect() 71 std::vector<CFX_FloatRect>* pRectArray, in ParserStream() 75 CFX_FloatRect rect; in ParserStream() 89 std::vector<CFX_FloatRect>* pRectArray, in ParserAnnots() 127 float GetMinMaxValue(const std::vector<CFX_FloatRect>& array, in GetMinMaxValue() 168 CFX_FloatRect CalculateRect(std::vector<CFX_FloatRect>* pRectArray) { in CalculateRect() 169 CFX_FloatRect rcRet; in CalculateRect() 234 CFX_Matrix GetMatrix(const CFX_FloatRect& rcAnnot, in GetMatrix() [all …]
|
D | cpdfsdk_appstream.cpp | 139 void WriteAppendRect(fxcrt::ostringstream& stream, const CFX_FloatRect& rect) { in WriteAppendRect() 185 ByteString GetAP_Check(const CFX_FloatRect& crBBox) { in GetAP_Check() 235 ByteString GetAP_Circle(const CFX_FloatRect& crBBox) { in GetAP_Circle() 275 ByteString GetAP_Cross(const CFX_FloatRect& crBBox) { in GetAP_Cross() 286 ByteString GetAP_Diamond(const CFX_FloatRect& crBBox) { in GetAP_Diamond() 301 ByteString GetAP_Square(const CFX_FloatRect& crBBox) { in GetAP_Square() 313 ByteString GetAP_Star(const CFX_FloatRect& crBBox) { in GetAP_Star() 339 ByteString GetAP_HalfCircle(const CFX_FloatRect& crBBox, float fRotate) { in GetAP_HalfCircle() 371 ByteString GetAppStream_Check(const CFX_FloatRect& rcBBox, in GetAppStream_Check() 382 ByteString GetAppStream_Circle(const CFX_FloatRect& rcBBox, in GetAppStream_Circle() [all …]
|
D | cpdfsdk_annotiterator.cpp | 21 CFX_FloatRect GetAnnotRect(const CPDFSDK_Annot* pAnnot) { in GetAnnotRect() 82 CFX_FloatRect CPDFSDK_AnnotIterator::AddToAnnotsList( in AddToAnnotsList() 86 CFX_FloatRect rcLeftTop = GetAnnotRect(pLeftTopAnnot); in AddToAnnotsList() 129 CFX_FloatRect rcAnnot = GetAnnotRect(sa[i]); in GenerateResults() 138 CFX_FloatRect rcLeftTop = AddToAnnotsList(&sa, nLeftTopIndex); in GenerateResults() 142 CFX_FloatRect rcAnnot = GetAnnotRect(sa[i]); in GenerateResults() 161 CFX_FloatRect rcAnnot = GetAnnotRect(sa[i]); in GenerateResults() 173 CFX_FloatRect rcLeftTop = AddToAnnotsList(&sa, nLeftTopIndex); in GenerateResults() 177 CFX_FloatRect rcAnnot = GetAnnotRect(sa[i]); in GenerateResults()
|
D | cpdfsdk_annotiterator_embeddertest.cpp | 17 void CheckRect(const CFX_FloatRect& actual, const CFX_FloatRect& expected) { in CheckRect() 37 CFX_FloatRect LeftBottom(200, 200, 220, 220); in TEST_F() 38 CFX_FloatRect RightBottom(400, 201, 420, 221); in TEST_F() 39 CFX_FloatRect LeftTop(201, 400, 221, 420); in TEST_F() 40 CFX_FloatRect RightTop(401, 401, 421, 421); in TEST_F()
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_clippath.cpp | 41 CFX_FloatRect CPDF_ClipPath::GetClipBox() const { in GetClipBox() 42 CFX_FloatRect rect; in GetClipBox() 47 CFX_FloatRect path_rect = GetPath(i).GetBoundingBox(); in GetClipBox() 53 CFX_FloatRect layer_rect; in GetClipBox() 59 layer_rect.Union(CFX_FloatRect(pTextObj->GetBBox())); in GetClipBox() 61 layer_rect = CFX_FloatRect(pTextObj->GetBBox()); in GetClipBox() 92 CFX_FloatRect old_rect(point0.x, point0.y, point2.x, point2.y); in AppendPathWithAutoMerge() 93 CFX_FloatRect new_rect = path.GetBoundingBox(); in AppendPathWithAutoMerge()
|
D | cpdf_pageobject.h | 67 void SetOriginalRect(const CFX_FloatRect& rect) { m_OriginalRect = rect; } in SetOriginalRect() 68 const CFX_FloatRect& GetOriginalRect() const { return m_OriginalRect; } in GetOriginalRect() 69 void SetRect(const CFX_FloatRect& rect) { m_Rect = rect; } in SetRect() 70 const CFX_FloatRect& GetRect() const { return m_Rect; } in GetRect() 108 CFX_FloatRect m_Rect; 109 CFX_FloatRect m_OriginalRect;
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_annot.h | 69 static CFX_FloatRect RectFromQuadPointsArray(const CPDF_Array* pArray, 71 static CFX_FloatRect BoundingRectFromQuadPoints( 73 static CFX_FloatRect RectFromQuadPoints(const CPDF_Dictionary* pAnnotDict, 82 CFX_FloatRect GetRect() const; 102 absl::optional<CFX_FloatRect> GetPopupAnnotRect() const; 110 CFX_FloatRect RectForDrawing() const;
|
D | cpvt_floatrect.h | 12 class CPVT_FloatRect final : public CFX_FloatRect { 20 : CFX_FloatRect(other_left, other_bottom, other_right, other_top) {} in CPVT_FloatRect() 22 explicit CPVT_FloatRect(const CFX_FloatRect& rect) in CPVT_FloatRect() 23 : CFX_FloatRect(rect.left, rect.bottom, rect.right, rect.top) {} in CPVT_FloatRect()
|
D | cpdf_annot.cpp | 53 CFX_FloatRect form_bbox = in AnnotGetMatrix() 171 CFX_FloatRect CPDF_Annot::RectForDrawing() const { in RectForDrawing() 179 CFX_FloatRect CPDF_Annot::GetRect() const { in GetRect() 180 CFX_FloatRect rect = RectForDrawing(); in GetRect() 228 absl::optional<CFX_FloatRect> CPDF_Annot::GetPopupAnnotRect() const { in GetPopupAnnotRect() 235 CFX_FloatRect CPDF_Annot::RectFromQuadPointsArray(const CPDF_Array* pArray, in RectFromQuadPointsArray() 251 return CFX_FloatRect( in RectFromQuadPointsArray() 257 CFX_FloatRect CPDF_Annot::BoundingRectFromQuadPoints( in BoundingRectFromQuadPoints() 259 CFX_FloatRect ret; in BoundingRectFromQuadPoints() 267 CFX_FloatRect rect = RectFromQuadPointsArray(pArray.Get(), i); in BoundingRectFromQuadPoints() [all …]
|
/external/pdfium/core/fpdftext/ |
D | cpdf_textpage.h | 57 CFX_FloatRect m_CharBox; 73 CFX_FloatRect GetCharLooseBounds(size_t index) const; 75 std::vector<CFX_FloatRect> GetRectArray(int start, int count) const; 77 WideString GetTextByRect(const CFX_FloatRect& rect) const; 87 bool GetRect(int rectIndex, CFX_FloatRect* pRect) const; 157 std::vector<CFX_FloatRect> m_SelRects; 160 CFX_FloatRect m_CurlineRect;
|
/external/pdfium/fpdfsdk/formfiller/ |
D | cffl_formfield.cpp | 41 CFX_FloatRect rcAnnot = in GetViewBBox() 43 CFX_FloatRect rcFocus = GetFocusBox(pPageView); in GetViewBBox() 45 CFX_FloatRect rcWin = rcAnnot; in GetViewBBox() 413 CFX_FloatRect rcDA = m_pWidget->GetPDFAnnot()->GetRect(); in GetCurMatrix() 435 CFX_FloatRect CFFL_FormField::GetPDFAnnotRect() const { in GetPDFAnnotRect() 436 CFX_FloatRect rectAnnot = m_pWidget->GetPDFAnnot()->GetRect(); in GetPDFAnnotRect() 441 return CFX_FloatRect(0, 0, fWidth, fHeight); in GetPDFAnnotRect() 448 CFX_FloatRect CFFL_FormField::GetFocusBox(const CPDFSDK_PageView* pPageView) { in GetFocusBox() 451 return CFX_FloatRect(); in GetFocusBox() 453 CFX_FloatRect rcFocus = PWLtoFFL(pWnd->GetFocusRect()); in GetFocusBox() [all …]
|