Home
last modified time | relevance | path

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

12

/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator_unittest.cpp55 pPathObj->m_Path.AppendPoint(CFX_PointF(0, 0), FXPT_TYPE::MoveTo, false); in TEST_F()
56 pPathObj->m_Path.AppendPoint(CFX_PointF(5.2f, 0), FXPT_TYPE::LineTo, false); in TEST_F()
57 pPathObj->m_Path.AppendPoint(CFX_PointF(5.2f, 3.78f), FXPT_TYPE::LineTo, in TEST_F()
59 pPathObj->m_Path.AppendPoint(CFX_PointF(0, 3.78f), FXPT_TYPE::LineTo, true); in TEST_F()
70 pPathObj->m_Path.AppendPoint(CFX_PointF(3.102f, 4.67f), FXPT_TYPE::MoveTo, in TEST_F()
72 pPathObj->m_Path.AppendPoint(CFX_PointF(5.45f, 0.29f), FXPT_TYPE::LineTo, in TEST_F()
74 pPathObj->m_Path.AppendPoint(CFX_PointF(4.24f, 3.15f), FXPT_TYPE::BezierTo, in TEST_F()
76 pPathObj->m_Path.AppendPoint(CFX_PointF(4.65f, 2.98f), FXPT_TYPE::BezierTo, in TEST_F()
78 pPathObj->m_Path.AppendPoint(CFX_PointF(3.456f, 0.24f), FXPT_TYPE::BezierTo, in TEST_F()
80 pPathObj->m_Path.AppendPoint(CFX_PointF(10.6f, 11.15f), FXPT_TYPE::LineTo, in TEST_F()
[all …]
Dcpdf_pagecontentgenerator.cpp161 FXPT_TYPE pointType = pPoints[i].m_Type; in ProcessPath()
162 if (pointType == FXPT_TYPE::MoveTo) { in ProcessPath()
164 } else if (pointType == FXPT_TYPE::LineTo) { in ProcessPath()
166 } else if (pointType == FXPT_TYPE::BezierTo) { in ProcessPath()
168 !pPoints[i].IsTypeAndOpen(FXPT_TYPE::BezierTo) || in ProcessPath()
169 !pPoints[i + 1].IsTypeAndOpen(FXPT_TYPE::BezierTo) || in ProcessPath()
170 pPoints[i + 2].m_Type != FXPT_TYPE::BezierTo) { in ProcessPath()
/external/pdfium/core/fxge/ge/
Dcfx_pathdata.cpp163 FX_PATHPOINT::FX_PATHPOINT(const CFX_PointF& point, FXPT_TYPE type, bool close) in FX_PATHPOINT()
201 FXPT_TYPE type, in AppendPoint()
211 FX_PATHPOINT(CFX_PointF(left, bottom), FXPT_TYPE::MoveTo, false)); in AppendRect()
213 FX_PATHPOINT(CFX_PointF(left, top), FXPT_TYPE::LineTo, false)); in AppendRect()
215 FX_PATHPOINT(CFX_PointF(right, top), FXPT_TYPE::LineTo, false)); in AppendRect()
217 FX_PATHPOINT(CFX_PointF(right, bottom), FXPT_TYPE::LineTo, false)); in AppendRect()
219 FX_PATHPOINT(CFX_PointF(left, bottom), FXPT_TYPE::LineTo, true)); in AppendRect()
243 if (m_Points[iPoint].IsTypeAndOpen(FXPT_TYPE::MoveTo)) { in GetBoundingBox()
248 if (m_Points[iPoint].IsTypeAndOpen(FXPT_TYPE::BezierTo)) { in GetBoundingBox()
255 m_Points[iPoint + 1].IsTypeAndOpen(FXPT_TYPE::MoveTo)) { in GetBoundingBox()
[all …]
Dcfx_font.cpp90 if (size >= 2 && points[size - 2].IsTypeAndOpen(FXPT_TYPE::MoveTo) && in Outline_CheckEmptyContour()
94 if (size >= 4 && points[size - 4].IsTypeAndOpen(FXPT_TYPE::MoveTo) && in Outline_CheckEmptyContour()
95 points[size - 3].IsTypeAndOpen(FXPT_TYPE::BezierTo) && in Outline_CheckEmptyContour()
112 FXPT_TYPE::MoveTo, false); in Outline_MoveTo()
124 FXPT_TYPE::LineTo, false); in Outline_LineTo()
141 FXPT_TYPE::BezierTo, false); in Outline_ConicTo()
146 FXPT_TYPE::BezierTo, false); in Outline_ConicTo()
150 FXPT_TYPE::BezierTo, false); in Outline_ConicTo()
165 FXPT_TYPE::BezierTo, false); in Outline_CubicTo()
169 FXPT_TYPE::BezierTo, false); in Outline_CubicTo()
[all …]
Dcfx_renderdevice.cpp695 path.AppendPoint(CFX_PointF(x1, y1), FXPT_TYPE::MoveTo, false); in DrawCosmeticLine()
696 path.AppendPoint(CFX_PointF(x2, y2), FXPT_TYPE::LineTo, false); in DrawCosmeticLine()
/external/pdfium/xfa/fxgraphics/
Dcfx_path.cpp25 data_.AppendPoint(point, FXPT_TYPE::MoveTo, false); in MoveTo()
29 data_.AppendPoint(point, FXPT_TYPE::LineTo, false); in LineTo()
35 data_.AppendPoint(c1, FXPT_TYPE::BezierTo, false); in BezierTo()
36 data_.AppendPoint(c2, FXPT_TYPE::BezierTo, false); in BezierTo()
37 data_.AppendPoint(to, FXPT_TYPE::BezierTo, false); in BezierTo()
65 data_.AppendPoint(bezier, FXPT_TYPE::BezierTo, false); in ArcToInternal()
69 data_.AppendPoint(bezier, FXPT_TYPE::BezierTo, false); in ArcToInternal()
73 data_.AppendPoint(bezier, FXPT_TYPE::BezierTo, false); in ArcToInternal()
77 data_.AppendPoint(p1, FXPT_TYPE::MoveTo, false); in AddLine()
78 data_.AppendPoint(p2, FXPT_TYPE::LineTo, false); in AddLine()
[all …]
/external/pdfium/core/fxge/
Dcfx_pathdata.h19 FX_PATHPOINT(const CFX_PointF& point, FXPT_TYPE type, bool close);
23 bool IsTypeAndOpen(FXPT_TYPE type) const { in IsTypeAndOpen()
28 FXPT_TYPE m_Type;
40 FXPT_TYPE GetType(int index) const { return m_Points[index].m_Type; } in GetType()
63 void AppendPoint(const CFX_PointF& pos, FXPT_TYPE type, bool closeFigure);
Dcfx_renderdevice.h63 enum class FXPT_TYPE : uint8_t { LineTo, BezierTo, MoveTo }; enum
/external/pdfium/fpdfsdk/
Dfpdfeditpath.cpp13 pPathObj->m_Path.AppendPoint(CFX_PointF(x, y), FXPT_TYPE::MoveTo, false); in FPDFPageObj_CreateNewPath()
74 pPathObj->m_Path.AppendPoint(CFX_PointF(x, y), FXPT_TYPE::MoveTo, false); in FPDFPath_MoveTo()
83 pPathObj->m_Path.AppendPoint(CFX_PointF(x, y), FXPT_TYPE::LineTo, false); in FPDFPath_LineTo()
98 pPathObj->m_Path.AppendPoint(CFX_PointF(x1, y1), FXPT_TYPE::BezierTo, false); in FPDFPath_BezierTo()
99 pPathObj->m_Path.AppendPoint(CFX_PointF(x2, y2), FXPT_TYPE::BezierTo, false); in FPDFPath_BezierTo()
100 pPathObj->m_Path.AppendPoint(CFX_PointF(x3, y3), FXPT_TYPE::BezierTo, false); in FPDFPath_BezierTo()
Dfpdf_transformpage.cpp251 FXPT_TYPE point_type = pPoints[i].m_Type; in OutputPath()
252 if (point_type == FXPT_TYPE::MoveTo) { in OutputPath()
254 } else if (point_type == FXPT_TYPE::BezierTo) { in OutputPath()
263 } else if (point_type == FXPT_TYPE::LineTo) { in OutputPath()
/external/pdfium/core/fpdfapi/page/
Dcpdf_streamcontentparser.cpp594 AddPathPoint(m_PathStartX, m_PathStartY, FXPT_TYPE::LineTo, true); in Handle_CloseEOFillStrokePath()
688 AddPathPoint(GetNumber(5), GetNumber(4), FXPT_TYPE::BezierTo, false); in Handle_CurveTo_123()
689 AddPathPoint(GetNumber(3), GetNumber(2), FXPT_TYPE::BezierTo, false); in Handle_CurveTo_123()
690 AddPathPoint(GetNumber(1), GetNumber(0), FXPT_TYPE::BezierTo, false); in Handle_CurveTo_123()
893 AddPathPoint(m_PathStartX, m_PathStartY, FXPT_TYPE::LineTo, true); in Handle_ClosePath()
894 } else if (m_pPathPoints[m_PathPointCount - 1].m_Type != FXPT_TYPE::MoveTo) { in Handle_ClosePath()
943 AddPathPoint(GetNumber(1), GetNumber(0), FXPT_TYPE::LineTo, false); in Handle_LineTo()
950 AddPathPoint(GetNumber(1), GetNumber(0), FXPT_TYPE::MoveTo, false); in Handle_MoveTo()
988 AddPathPoint(x, y, FXPT_TYPE::MoveTo, false); in AddPathRect()
989 AddPathPoint(x + w, y, FXPT_TYPE::LineTo, false); in AddPathRect()
[all …]
Dcpdf_path.h40 void AppendPoint(const CFX_PointF& point, FXPT_TYPE type, bool close);
Dcpdf_path.cpp60 FXPT_TYPE type, in AppendPoint()
Dcpdf_streamcontentparser.h97 void AddPathPoint(FX_FLOAT x, FX_FLOAT y, FXPT_TYPE type, bool close);
/external/pdfium/fpdfsdk/pdfwindow/
DPWL_Utils.cpp953 path.AppendPoint(pPts[0], FXPT_TYPE::MoveTo, false); in DrawFillArea()
955 path.AppendPoint(pPts[i], FXPT_TYPE::LineTo, false); in DrawFillArea()
982 path.AppendPoint(ptMoveTo, FXPT_TYPE::MoveTo, false); in DrawStrokeLine()
983 path.AppendPoint(ptLineTo, FXPT_TYPE::LineTo, false); in DrawStrokeLine()
1067 FXPT_TYPE::MoveTo, false); in DrawBorder()
1070 FXPT_TYPE::LineTo, false); in DrawBorder()
1073 FXPT_TYPE::LineTo, false); in DrawBorder()
1076 FXPT_TYPE::LineTo, false); in DrawBorder()
1079 FXPT_TYPE::LineTo, false); in DrawBorder()
1100 FXPT_TYPE::MoveTo, false); in DrawBorder()
[all …]
DPWL_Caret.cpp50 path.AppendPoint(CFX_PointF(fCaretX, fCaretBottom), FXPT_TYPE::MoveTo, in DrawThisAppearance()
52 path.AppendPoint(CFX_PointF(fCaretX, fCaretTop), FXPT_TYPE::LineTo, false); in DrawThisAppearance()
DPWL_ScrollBar.cpp260 path.AppendPoint(pt1, FXPT_TYPE::MoveTo, false); in DrawThisAppearance()
261 path.AppendPoint(pt2, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
262 path.AppendPoint(pt3, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
263 path.AppendPoint(pt1, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
280 path.AppendPoint(pt1, FXPT_TYPE::MoveTo, false); in DrawThisAppearance()
281 path.AppendPoint(pt2, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
282 path.AppendPoint(pt3, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
283 path.AppendPoint(pt1, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
DPWL_ComboBox.cpp150 path.AppendPoint(pt1, FXPT_TYPE::MoveTo, false); in DrawThisAppearance()
151 path.AppendPoint(pt2, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
152 path.AppendPoint(pt3, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
153 path.AppendPoint(pt1, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
DPWL_Edit.cpp342 FXPT_TYPE::MoveTo, false); in DrawThisAppearance()
348 FXPT_TYPE::LineTo, false); in DrawThisAppearance()
372 FXPT_TYPE::MoveTo, false); in DrawThisAppearance()
378 FXPT_TYPE::LineTo, false); in DrawThisAppearance()
/external/pdfium/xfa/fde/
Dcfde_path.cpp22 m_Path.AppendPoint(point, FXPT_TYPE::MoveTo, false); in MoveTo()
26 m_Path.AppendPoint(point, FXPT_TYPE::LineTo, false); in LineTo()
32 m_Path.AppendPoint(p1, FXPT_TYPE::BezierTo, false); in BezierTo()
33 m_Path.AppendPoint(p2, FXPT_TYPE::BezierTo, false); in BezierTo()
34 m_Path.AppendPoint(p3, FXPT_TYPE::BezierTo, false); in BezierTo()
/external/pdfium/core/fxge/win32/
Dcfx_psrenderer.cpp117 FXPT_TYPE type = pPathData->GetType(i); in OutputPath()
125 case FXPT_TYPE::MoveTo: in OutputPath()
128 case FXPT_TYPE::LineTo: in OutputPath()
133 case FXPT_TYPE::BezierTo: { in OutputPath()
607 case FXPT_TYPE::MoveTo: { in FindPSFontGlyph()
611 case FXPT_TYPE::LineTo: { in FindPSFontGlyph()
615 case FXPT_TYPE::BezierTo: { in FindPSFontGlyph()
Dfx_win32_gdipext.cpp1149 FXPT_TYPE point_type = pPoints[i].m_Type; in DrawPath()
1150 if (point_type == FXPT_TYPE::MoveTo) { in DrawPath()
1155 } else if (point_type == FXPT_TYPE::LineTo) { in DrawPath()
1157 if (pPoints[i - 1].IsTypeAndOpen(FXPT_TYPE::MoveTo) && in DrawPath()
1159 pPoints[i + 1].IsTypeAndOpen(FXPT_TYPE::MoveTo)) && in DrawPath()
1168 } else if (point_type == FXPT_TYPE::BezierTo) { in DrawPath()
Dfx_win32_device.cpp177 FXPT_TYPE point_type = pPoints[i].m_Type; in SetPathToDC()
178 if (point_type == FXPT_TYPE::MoveTo) { in SetPathToDC()
180 } else if (point_type == FXPT_TYPE::LineTo) { in SetPathToDC()
185 } else if (point_type == FXPT_TYPE::BezierTo) { in SetPathToDC()
/external/pdfium/fpdfsdk/formfiller/
Dcffl_interactiveformfiller.cpp73 FXPT_TYPE::MoveTo, false); in OnDraw()
75 FXPT_TYPE::LineTo, false); in OnDraw()
77 FXPT_TYPE::LineTo, false); in OnDraw()
79 FXPT_TYPE::LineTo, false); in OnDraw()
81 FXPT_TYPE::LineTo, false); in OnDraw()
/external/pdfium/core/fxge/agg/
Dfx_agg_driver.cpp283 FXPT_TYPE point_type = pPoints[i].m_Type; in BuildPath()
284 if (point_type == FXPT_TYPE::MoveTo) { in BuildPath()
286 } else if (point_type == FXPT_TYPE::LineTo) { in BuildPath()
287 if (pPoints[i - 1].IsTypeAndOpen(FXPT_TYPE::MoveTo) && in BuildPath()
289 pPoints[i + 1].IsTypeAndOpen(FXPT_TYPE::MoveTo)) && in BuildPath()
294 } else if (point_type == FXPT_TYPE::BezierTo) { in BuildPath()

12