Home
last modified time | relevance | path

Searched refs:pPathObj (Results 1 – 8 of 8) sorted by relevance

/external/pdfium/fpdfsdk/
Dfpdf_editpath.cpp51 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()
[all …]
Dfpdf_editpage.cpp77 CPDF_PathObject* pPathObj = pPageObj->AsPath(); in CalcBoundingBox() local
78 pPathObj->CalcBoundingBox(); in CalcBoundingBox()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator_unittest.cpp37 CPDF_PathObject* pPathObj) { in TestProcessPath() argument
38 pGen->ProcessPath(buf, pPathObj); in TestProcessPath()
55 auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); in TEST_F() local
56 pPathObj->set_stroke(true); in TEST_F()
57 pPathObj->set_filltype(FXFILL_ALTERNATE); in TEST_F()
58 pPathObj->path().AppendRect(10, 5, 13, 30); in TEST_F()
65 TestProcessPath(&generator, &buf, pPathObj.get()); in TEST_F()
68 pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); in TEST_F()
69 pPathObj->path().AppendPoint(CFX_PointF(0, 0), FXPT_TYPE::MoveTo, false); in TEST_F()
70 pPathObj->path().AppendPoint(CFX_PointF(5.2f, 0), FXPT_TYPE::LineTo, false); in TEST_F()
[all …]
Dcpdf_pagecontentgenerator.cpp298 else if (CPDF_PathObject* pPathObj = pPageObj->AsPath()) in ProcessPageObject() local
299 ProcessPath(buf, pPathObj); in ProcessPageObject()
346 CPDF_PathObject* pPathObj) { in ProcessPath() argument
347 ProcessGraphics(buf, pPathObj); in ProcessPath()
349 *buf << pPathObj->matrix() << " cm "; in ProcessPath()
351 const auto& pPoints = pPathObj->path().GetPoints(); in ProcessPath()
352 if (pPathObj->path().IsRect()) { in ProcessPath()
385 if (pPathObj->has_no_filltype()) in ProcessPath()
386 *buf << (pPathObj->stroke() ? " S" : " n"); in ProcessPath()
387 else if (pPathObj->has_winding_filltype()) in ProcessPath()
[all …]
Dcpdf_pagecontentgenerator.h40 void ProcessPath(std::ostringstream* buf, CPDF_PathObject* pPathObj);
/external/pdfium/core/fpdfapi/render/
Dcpdf_renderstatus.h136 bool ProcessPath(CPDF_PathObject* pPathObj, const CFX_Matrix& mtObj2Device);
137 void ProcessPathPattern(CPDF_PathObject* pPathObj,
141 void DrawPathWithPattern(CPDF_PathObject* pPathObj,
148 bool SelectClipPath(const CPDF_PathObject* pPathObj,
Dcpdf_renderstatus.cpp407 bool CPDF_RenderStatus::ProcessPath(CPDF_PathObject* pPathObj, in ProcessPath() argument
409 int FillType = pPathObj->filltype(); in ProcessPath()
410 bool bStroke = pPathObj->stroke(); in ProcessPath()
411 ProcessPathPattern(pPathObj, mtObj2Device, &FillType, &bStroke); in ProcessPath()
415 uint32_t fill_argb = FillType ? GetFillArgb(pPathObj) : 0; in ProcessPath()
416 uint32_t stroke_argb = bStroke ? GetStrokeArgb(pPathObj) : 0; in ProcessPath()
417 CFX_Matrix path_matrix = pPathObj->matrix() * mtObj2Device; in ProcessPath()
431 static_cast<const CPDF_PageObject*>(pPathObj); in ProcessPath()
437 CFX_GraphState graphState = pPathObj->m_GraphState; in ProcessPath()
441 pPathObj->path().GetObject(), &path_matrix, graphState.GetObject(), in ProcessPath()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_streamcontentparser.cpp1474 auto pPathObj = in AddPathObject() local
1476 pPathObj->set_stroke(bStroke); in AddPathObject()
1477 pPathObj->set_filltype(FillType); in AddPathObject()
1478 pPathObj->path() = Path; in AddPathObject()
1479 pPathObj->set_matrix(matrix); in AddPathObject()
1480 SetGraphicStates(pPathObj.get(), true, false, true); in AddPathObject()
1481 pPathObj->CalcBoundingBox(); in AddPathObject()
1482 m_pObjectHolder->AppendPageObject(std::move(pPathObj)); in AddPathObject()