Lines Matching refs:pPathObj
51 auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); in FPDFPageObj_CreateNewPath() local
52 pPathObj->path().AppendPoint(CFX_PointF(x, y), FXPT_TYPE::MoveTo, false); in FPDFPageObj_CreateNewPath()
53 pPathObj->DefaultStates(); in FPDFPageObj_CreateNewPath()
56 return FPDFPageObjectFromCPDFPageObject(pPathObj.release()); in FPDFPageObj_CreateNewPath()
63 auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); in FPDFPageObj_CreateNewRect() local
64 pPathObj->path().AppendRect(x, y, x + w, y + h); in FPDFPageObj_CreateNewRect()
65 pPathObj->DefaultStates(); in FPDFPageObj_CreateNewRect()
68 return FPDFPageObjectFromCPDFPageObject(pPathObj.release()); in FPDFPageObj_CreateNewRect()
72 auto* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_CountSegments() local
73 if (!pPathObj) in FPDFPath_CountSegments()
75 return pdfium::CollectionSize<int>(pPathObj->path().GetPoints()); in FPDFPath_CountSegments()
80 auto* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_GetPathSegment() local
81 if (!pPathObj) in FPDFPath_GetPathSegment()
84 const std::vector<FX_PATHPOINT>& points = pPathObj->path().GetPoints(); in FPDFPath_GetPathSegment()
94 auto* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_MoveTo() local
95 if (!pPathObj) in FPDFPath_MoveTo()
98 pPathObj->path().AppendPoint(CFX_PointF(x, y), FXPT_TYPE::MoveTo, false); in FPDFPath_MoveTo()
99 pPathObj->SetDirty(true); in FPDFPath_MoveTo()
106 auto* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_LineTo() local
107 if (!pPathObj) in FPDFPath_LineTo()
110 pPathObj->path().AppendPoint(CFX_PointF(x, y), FXPT_TYPE::LineTo, false); in FPDFPath_LineTo()
111 pPathObj->SetDirty(true); in FPDFPath_LineTo()
122 auto* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_BezierTo() local
123 if (!pPathObj) in FPDFPath_BezierTo()
126 CPDF_Path& cpath = pPathObj->path(); in FPDFPath_BezierTo()
130 pPathObj->SetDirty(true); in FPDFPath_BezierTo()
135 auto* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_Close() local
136 if (!pPathObj) in FPDFPath_Close()
139 CPDF_Path& cpath = pPathObj->path(); in FPDFPath_Close()
144 pPathObj->SetDirty(true); in FPDFPath_Close()
151 auto* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_SetDrawMode() local
152 if (!pPathObj) in FPDFPath_SetDrawMode()
155 pPathObj->set_stroke(!!stroke); in FPDFPath_SetDrawMode()
157 pPathObj->set_alternate_filltype(); in FPDFPath_SetDrawMode()
159 pPathObj->set_winding_filltype(); in FPDFPath_SetDrawMode()
161 pPathObj->set_no_filltype(); in FPDFPath_SetDrawMode()
162 pPathObj->SetDirty(true); in FPDFPath_SetDrawMode()
169 auto* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_GetDrawMode() local
170 if (!pPathObj || !fillmode || !stroke) in FPDFPath_GetDrawMode()
173 if (pPathObj->has_alternate_filltype()) in FPDFPath_GetDrawMode()
175 else if (pPathObj->has_winding_filltype()) in FPDFPath_GetDrawMode()
180 *stroke = pPathObj->stroke(); in FPDFPath_GetDrawMode()
189 CPDF_PathObject* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_GetMatrix() local
190 if (!pPathObj) in FPDFPath_GetMatrix()
193 *matrix = FSMatrixFromCFXMatrix(pPathObj->matrix()); in FPDFPath_GetMatrix()
202 CPDF_PathObject* pPathObj = CPDFPathObjectFromFPDFPageObject(path); in FPDFPath_SetMatrix() local
203 if (!pPathObj) in FPDFPath_SetMatrix()
206 pPathObj->set_matrix(CFXMatrixFromFSMatrix(*matrix)); in FPDFPath_SetMatrix()
207 pPathObj->SetDirty(true); in FPDFPath_SetMatrix()