Home
last modified time | relevance | path

Searched refs:CFX_FloatRect (Results 1 – 25 of 137) sorted by relevance

123456

/external/pdfium/core/fxcrt/
Dfx_coordinates.cpp79 CFX_FloatRect::CFX_FloatRect(const FX_RECT& rect) in CFX_FloatRect() function in CFX_FloatRect
83 CFX_FloatRect CFX_FloatRect::GetBBox(const CFX_PointF* pPoints, int nPoints) { in GetBBox()
85 return CFX_FloatRect(); in GetBBox()
97 return CFX_FloatRect(min_x, min_y, max_x, max_y); in GetBBox()
100 void CFX_FloatRect::Normalize() { in Normalize()
107 void CFX_FloatRect::Intersect(const CFX_FloatRect& other_rect) { in Intersect()
109 CFX_FloatRect other = other_rect; in Intersect()
116 *this = CFX_FloatRect(); in Intersect()
119 void CFX_FloatRect::Union(const CFX_FloatRect& other_rect) { in Union()
121 CFX_FloatRect other = other_rect; in Union()
[all …]
Dfx_coordinates_unittest.cpp22 TEST(CFX_FloatRect, FromFXRect) { in TEST() argument
24 CFX_FloatRect rect(downwards); in TEST()
31 TEST(CFX_FloatRect, GetBBox) { in TEST() argument
32 CFX_FloatRect rect = CFX_FloatRect::GetBBox(nullptr, 0); in TEST()
40 rect = CFX_FloatRect::GetBBox(data.data(), 0); in TEST()
45 rect = CFX_FloatRect::GetBBox(data.data(), data.size()); in TEST()
53 rect = CFX_FloatRect::GetBBox(data.data(), 2); in TEST()
59 rect = CFX_FloatRect::GetBBox(data.data(), data.size()); in TEST()
66 rect = CFX_FloatRect::GetBBox(data.data(), data.size()); in TEST()
73 rect = CFX_FloatRect::GetBBox(data.data(), data.size()); in TEST()
[all …]
Dfx_coordinates.h226 class CFX_FloatRect {
228 constexpr CFX_FloatRect() = default;
229 constexpr CFX_FloatRect(float l, float b, float r, float t) in CFX_FloatRect() function
232 explicit CFX_FloatRect(const float* pArray) in CFX_FloatRect() function
233 : CFX_FloatRect(pArray[0], pArray[1], pArray[2], pArray[3]) {} in CFX_FloatRect()
235 explicit CFX_FloatRect(const FX_RECT& rect);
237 static CFX_FloatRect GetBBox(const CFX_PointF* pPoints, int nPoints);
243 bool Contains(const CFX_FloatRect& other_rect) const;
245 void Intersect(const CFX_FloatRect& other_rect);
246 void Union(const CFX_FloatRect& other_rect);
[all …]
/external/pdfium/fpdfsdk/pwl/
Dcpwl_list_impl.h63 CFX_FloatRect GetItemRect(int32_t nIndex) const;
67 void SetContentRect(const CFX_FloatRect& rect) { m_rcContent = rect; } in SetContentRect()
68 CFX_FloatRect GetContentRect() const;
82 CFX_FloatRect GetPlateRect() const { return m_rcPlate; } in GetPlateRect()
83 void SetPlateRect(const CFX_FloatRect& rect);
104 void SetRect(const CFX_FloatRect& rect) { m_rcListItem = rect; } in SetRect()
110 CFX_FloatRect GetRect() const { return m_rcListItem; } in GetRect()
119 CFX_FloatRect m_rcListItem;
125 CFX_FloatRect InToOut(const CFX_FloatRect& rect) const;
126 CFX_FloatRect OutToIn(const CFX_FloatRect& rect) const;
[all …]
Dcpwl_list_impl.cpp115 CFX_FloatRect rcPlate = m_rcPlate; in InToOut()
121 CFX_FloatRect rcPlate = m_rcPlate; in OutToIn()
126 CFX_FloatRect CPWL_ListCtrl::InToOut(const CFX_FloatRect& rect) const { in InToOut()
129 return CFX_FloatRect(ptLeftBottom.x, ptLeftBottom.y, ptRightTop.x, in InToOut()
133 CFX_FloatRect CPWL_ListCtrl::OutToIn(const CFX_FloatRect& rect) const { in OutToIn()
136 return CFX_FloatRect(ptLeftBottom.x, ptLeftBottom.y, ptRightTop.x, in OutToIn()
148 CFX_FloatRect CPWL_ListCtrl::InnerToOuter(const CFX_FloatRect& rect) const { in InnerToOuter()
151 return CFX_FloatRect(ptLeftTop.x, ptRightBottom.y, ptRightBottom.x, in InnerToOuter()
155 CFX_FloatRect CPWL_ListCtrl::OuterToInner(const CFX_FloatRect& rect) const { in OuterToInner()
158 return CFX_FloatRect(ptLeftTop.x, ptRightBottom.y, ptRightBottom.x, in OuterToInner()
[all …]
Dcpwl_wnd.h115 CFX_FloatRect rcRectWnd; // required
144 virtual bool InvalidateRect(CFX_FloatRect* pRect);
181 virtual CFX_FloatRect GetFocusRect() const;
182 virtual CFX_FloatRect GetClientRect() const;
188 bool Move(const CFX_FloatRect& rcNew, bool bReset, bool bRefresh);
211 CFX_FloatRect GetWindowRect() const;
219 void SetClipRect(const CFX_FloatRect& rect);
220 const CFX_FloatRect& GetClipRect() const;
281 bool InvalidateRectMove(const CFX_FloatRect& rcOld,
282 const CFX_FloatRect& rcNew);
[all …]
Dcpwl_scroll_bar.cpp127 CFX_FloatRect rectWnd = GetWindowRect(); in DrawThisAppearance()
324 CFX_FloatRect rcClient = GetClientRect(); in RePosChildWnd()
325 CFX_FloatRect rcMinButton, rcMaxButton; in RePosChildWnd()
332 rcMinButton = CFX_FloatRect(rcClient.left, rcClient.bottom, in RePosChildWnd()
335 CFX_FloatRect(rcClient.right - kButtonWidth, rcClient.bottom, in RePosChildWnd()
341 rcMinButton = CFX_FloatRect(rcClient.left, rcClient.bottom, in RePosChildWnd()
343 rcMaxButton = CFX_FloatRect(rcClient.right - fBWidth, rcClient.bottom, in RePosChildWnd()
354 rcMinButton = CFX_FloatRect(rcClient.left, rcClient.top - kButtonWidth, in RePosChildWnd()
357 CFX_FloatRect(rcClient.left, rcClient.bottom, rcClient.right, in RePosChildWnd()
363 rcMinButton = CFX_FloatRect(rcClient.left, rcClient.top - fBWidth, in RePosChildWnd()
[all …]
Dcpwl_wnd.cpp182 bool CPWL_Wnd::Move(const CFX_FloatRect& rcNew, bool bReset, bool bRefresh) { in Move()
186 CFX_FloatRect rcOld = GetWindowRect(); in Move()
204 bool CPWL_Wnd::InvalidateRectMove(const CFX_FloatRect& rcOld, in InvalidateRectMove()
205 const CFX_FloatRect& rcNew) { in InvalidateRectMove()
206 CFX_FloatRect rcUnion = rcOld; in InvalidateRectMove()
222 CFX_FloatRect rectWnd = GetWindowRect(); in DrawThisAppearance()
254 bool CPWL_Wnd::InvalidateRect(CFX_FloatRect* pRect) { in InvalidateRect()
259 CFX_FloatRect rcRefresh = pRect ? *pRect : GetWindowRect(); in InvalidateRect()
261 CFX_FloatRect rcClip = GetClipRect(); in InvalidateRect()
266 CFX_FloatRect rcWin = PWLtoWnd(rcRefresh); in InvalidateRect()
[all …]
Dcpwl_caret.cpp29 CFX_FloatRect rcRect = GetCaretRect(); in DrawThisAppearance()
30 CFX_FloatRect rcClip = GetClipRect(); in DrawThisAppearance()
61 CFX_FloatRect CPWL_Caret::GetCaretRect() const { in GetCaretRect()
62 return CFX_FloatRect(m_ptFoot.x, m_ptFoot.y, m_ptHead.x + m_fWidth, in GetCaretRect()
112 bool CPWL_Caret::InvalidateRect(CFX_FloatRect* pRect) { in InvalidateRect()
117 CFX_FloatRect rcRefresh = *pRect; in InvalidateRect()
Dcpwl_caret.h24 bool InvalidateRect(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;
Dcpwl_edit_impl.h35 const CFX_FloatRect& rcLine) in CPWL_EditImpl_LineRect()
39 CFX_FloatRect m_rcLine;
48 void Push(const CPVT_WordRange& linerange, const CFX_FloatRect& rect);
50 std::vector<CFX_FloatRect>* GetRefreshRects();
54 void Add(const CFX_FloatRect& new_rect);
58 std::vector<CFX_FloatRect> m_RefreshRects;
261 const CFX_FloatRect& rcClip,
280 void SetPlateRect(const CFX_FloatRect& rect);
329 CFX_FloatRect GetContentRect() const;
391 CFX_FloatRect VTToEdit(const CFX_FloatRect& rect) const;
[all …]
Dcpwl_list_box.cpp64 void CPWL_List_Notify::IOnInvalidateRect(CFX_FloatRect* pRect) { in IOnInvalidateRect()
99 CFX_FloatRect rcPlate = m_pList->GetPlateRect(); in DrawThisAppearance()
100 CFX_FloatRect rcList = GetListRect(); in DrawThisAppearance()
101 CFX_FloatRect rcClient = GetClientRect(); in DrawThisAppearance()
104 CFX_FloatRect rcItem = m_pList->GetItemRect(i); in DrawThisAppearance()
110 CFX_FloatRect rcContent = pEdit->GetContentRect(); in DrawThisAppearance()
273 CFX_FloatRect CPWL_ListBox::GetFocusRect() const { in GetFocusRect()
275 CFX_FloatRect rcCaret = m_pList->GetItemRect(m_pList->GetCaret()); in GetFocusRect()
356 CFX_FloatRect CPWL_ListBox::GetContentRect() const { in GetContentRect()
364 CFX_FloatRect CPWL_ListBox::GetListRect() const { in GetListRect()
Dcpwl_edit.cpp45 CFX_FloatRect rcWindow = m_rcOldWindow; in RePosChildWnd()
46 CFX_FloatRect rcVScroll = in RePosChildWnd()
47 CFX_FloatRect(rcWindow.right, rcWindow.bottom, in RePosChildWnd()
57 CFX_FloatRect rect = GetClientRect(); in RePosChildWnd()
69 CFX_FloatRect CPWL_Edit::GetClientRect() const { in GetClientRect()
71 CFX_FloatRect rcClient = GetWindowRect().GetDeflated(width, width); in GetClientRect()
146 SetClipRect(CFX_FloatRect()); in SetParamByFlag()
150 CFX_FloatRect rect = GetClientRect(); in SetParamByFlag()
165 CFX_FloatRect rcClient = GetClientRect(); in DrawThisAppearance()
233 CFX_FloatRect rcClip; in DrawThisAppearance()
[all …]
/external/pdfium/fpdfsdk/
Dfpdf_flatten.cpp36 bool IsValidRect(const CFX_FloatRect& rect, const CFX_FloatRect& rcPage) { in IsValidRect()
53 std::vector<CFX_FloatRect>* pRectArray) { in GetContentsRect()
58 const CFX_FloatRect& rc = pPageObject->GetRect(); in GetContentsRect()
66 std::vector<CFX_FloatRect>* pRectArray, in ParserStream()
70 CFX_FloatRect rect; in ParserStream()
84 std::vector<CFX_FloatRect>* pRectArray, in ParserAnnots()
121 float GetMinMaxValue(const std::vector<CFX_FloatRect>& array, in GetMinMaxValue()
162 CFX_FloatRect CalculateRect(std::vector<CFX_FloatRect>* pRectArray) { in CalculateRect()
163 CFX_FloatRect rcRet; in CalculateRect()
230 CFX_Matrix GetMatrix(const CFX_FloatRect& rcAnnot, in GetMatrix()
[all …]
Dcpdfsdk_appstream.cpp135 ByteString GetAP_Check(const CFX_FloatRect& crBBox) { in GetAP_Check()
184 ByteString GetAP_Circle(const CFX_FloatRect& crBBox) { in GetAP_Circle()
228 ByteString GetAP_Cross(const CFX_FloatRect& crBBox) { in GetAP_Cross()
240 ByteString GetAP_Diamond(const CFX_FloatRect& crBBox) { in GetAP_Diamond()
260 ByteString GetAP_Square(const CFX_FloatRect& crBBox) { in GetAP_Square()
273 ByteString GetAP_Star(const CFX_FloatRect& crBBox) { in GetAP_Star()
302 ByteString GetAP_HalfCircle(const CFX_FloatRect& crBBox, float fRotate) { in GetAP_HalfCircle()
338 ByteString GetAppStream_Check(const CFX_FloatRect& rcBBox, in GetAppStream_Check()
349 ByteString GetAppStream_Circle(const CFX_FloatRect& rcBBox, in GetAppStream_Circle()
360 ByteString GetAppStream_Cross(const CFX_FloatRect& rcBBox, in GetAppStream_Cross()
[all …]
Dcpdfsdk_annotiterator.cpp18 CFX_FloatRect GetAnnotRect(const CPDFSDK_Annot* pAnnot) { in GetAnnotRect()
88 CFX_FloatRect CPDFSDK_AnnotIterator::AddToAnnotsList( in AddToAnnotsList()
92 CFX_FloatRect rcLeftTop = GetAnnotRect(pLeftTopAnnot); in AddToAnnotsList()
122 CFX_FloatRect rcAnnot = GetAnnotRect(sa[i]); in GenerateResults()
131 CFX_FloatRect rcLeftTop = AddToAnnotsList(&sa, nLeftTopIndex); in GenerateResults()
135 CFX_FloatRect rcAnnot = GetAnnotRect(sa[i]); in GenerateResults()
154 CFX_FloatRect rcAnnot = GetAnnotRect(sa[i]); in GenerateResults()
166 CFX_FloatRect rcLeftTop = AddToAnnotsList(&sa, nLeftTopIndex); in GenerateResults()
170 CFX_FloatRect rcAnnot = GetAnnotRect(sa[i]); in GenerateResults()
Dcpdfsdk_annotiterator_embeddertest.cpp17 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/fpdfsdk/formfiller/
Dcffl_formfiller.h111 CFX_FloatRect GetFocusBox(CPDFSDK_PageView* pPageView);
112 CFX_FloatRect FFLtoPWL(const CFX_FloatRect& rect);
113 CFX_FloatRect PWLtoFFL(const CFX_FloatRect& rect);
117 CFX_FloatRect FFLtoWnd(const CFX_FloatRect& rect);
132 CFX_FloatRect GetPDFAnnotRect() const;
Dcffl_formfiller.cpp40 CFX_FloatRect rcAnnot = in GetViewBBox()
42 CFX_FloatRect rcFocus = GetFocusBox(pPageView); in GetViewBBox()
44 CFX_FloatRect rcWin = rcAnnot; in GetViewBBox()
387 CFX_FloatRect rcDA = m_pWidget->GetPDFAnnot()->GetRect(); in GetCurMatrix()
409 CFX_FloatRect CFFL_FormFiller::GetPDFAnnotRect() const { in GetPDFAnnotRect()
410 CFX_FloatRect rectAnnot = m_pWidget->GetPDFAnnot()->GetRect(); in GetPDFAnnotRect()
416 return CFX_FloatRect(0, 0, fWidth, fHeight); in GetPDFAnnotRect()
424 CFX_FloatRect CFFL_FormFiller::GetFocusBox(CPDFSDK_PageView* pPageView) { in GetFocusBox()
427 return CFX_FloatRect(); in GetFocusBox()
429 CFX_FloatRect rcFocus = FFLtoWnd(PWLtoFFL(pWnd->GetFocusRect())); in GetFocusBox()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_clippath.cpp41 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()
84 CFX_FloatRect old_rect(point0.x, point0.y, point2.x, point2.y); in AppendPath()
85 CFX_FloatRect new_rect = path.GetBoundingBox(); in AppendPath()
Dcpdf_pageobjectholder.h83 const CFX_FloatRect& GetBBox() const { return m_BBox; } in GetBBox()
92 const std::vector<CFX_FloatRect>& GetMaskBoundingBoxes() const { in GetMaskBoundingBoxes()
95 void AddImageMaskBoundingBox(const CFX_FloatRect& box);
107 CFX_FloatRect m_BBox;
115 std::vector<CFX_FloatRect> m_MaskBoundingBoxes;
/external/pdfium/core/fpdfdoc/
Dcpvt_floatrect.h12 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()
Dcpdf_annot.h64 static CFX_FloatRect RectFromQuadPointsArray(const CPDF_Array* pArray,
66 static CFX_FloatRect BoundingRectFromQuadPoints(
68 static CFX_FloatRect RectFromQuadPoints(const CPDF_Dictionary* pAnnotDict,
79 CFX_FloatRect GetRect() const;
111 CFX_FloatRect RectForDrawing() const;
Dcpdf_annot.cpp51 CFX_FloatRect form_bbox = in AnnotGetMatrix()
158 CFX_FloatRect CPDF_Annot::RectForDrawing() const { in RectForDrawing()
166 CFX_FloatRect CPDF_Annot::GetRect() const { in GetRect()
167 CFX_FloatRect rect = RectForDrawing(); in GetRect()
211 CFX_FloatRect CPDF_Annot::RectFromQuadPointsArray(const CPDF_Array* pArray, in RectFromQuadPointsArray()
227 return CFX_FloatRect( in RectFromQuadPointsArray()
233 CFX_FloatRect CPDF_Annot::BoundingRectFromQuadPoints( in BoundingRectFromQuadPoints()
235 CFX_FloatRect ret; in BoundingRectFromQuadPoints()
243 CFX_FloatRect rect = RectFromQuadPointsArray(pArray, i); in BoundingRectFromQuadPoints()
250 CFX_FloatRect CPDF_Annot::RectFromQuadPoints(const CPDF_Dictionary* pAnnotDict, in RectFromQuadPoints()
[all …]
/external/pdfium/core/fpdftext/
Dcpdf_textpage.h56 CFX_FloatRect m_CharBox;
73 std::vector<CFX_FloatRect> GetRectArray(int start, int nCount) const;
75 WideString GetTextByRect(const CFX_FloatRect& rect) const;
85 bool GetRect(int rectIndex, CFX_FloatRect* pRect) const;
146 std::vector<CFX_FloatRect> m_SelRects;
149 CFX_FloatRect m_CurlineRect;

123456