Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_editpath.cpp File Reference

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

#include "public/fpdf_edit.h"
#include <memory>
#include <utility>
#include "core/fpdfapi/page/cpdf_path.h"
#include "core/fpdfapi/page/cpdf_pathobject.h"
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/stl_util.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "third_party/base/containers/span.h"
+ Include dependency graph for fpdf_editpath.cpp:

Go to the source code of this file.

Functions

FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewPath (float x, float y)
 
FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewRect (float x, float y, float w, float h)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFPath_CountSegments (FPDF_PAGEOBJECT path)
 
FPDF_EXPORT FPDF_PATHSEGMENT FPDF_CALLCONV FPDFPath_GetPathSegment (FPDF_PAGEOBJECT path, int index)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_MoveTo (FPDF_PAGEOBJECT path, float x, float y)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_LineTo (FPDF_PAGEOBJECT path, float x, float y)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_BezierTo (FPDF_PAGEOBJECT path, float x1, float y1, float x2, float y2, float x3, float y3)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_Close (FPDF_PAGEOBJECT path)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_SetDrawMode (FPDF_PAGEOBJECT path, int fillmode, FPDF_BOOL stroke)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_GetDrawMode (FPDF_PAGEOBJECT path, int *fillmode, FPDF_BOOL *stroke)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPathSegment_GetPoint (FPDF_PATHSEGMENT segment, float *x, float *y)
 
FPDF_EXPORT int FPDF_CALLCONV FPDFPathSegment_GetType (FPDF_PATHSEGMENT segment)
 
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPathSegment_GetClose (FPDF_PATHSEGMENT segment)
 

Function Documentation

◆ FPDFPageObj_CreateNewPath()

FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewPath ( float x,
float y )

Definition at line 57 of file fpdf_editpath.cpp.

References CFX_Path::Point::kMove.

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

◆ FPDFPageObj_CreateNewRect()

FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewRect ( float x,
float y,
float w,
float h )

Definition at line 67 of file fpdf_editpath.cpp.

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

◆ FPDFPath_BezierTo()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_BezierTo ( FPDF_PAGEOBJECT path,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3 )

Definition at line 123 of file fpdf_editpath.cpp.

References CPDF_Path::AppendPoint(), CFX_Path::Point::kBezier, CPDF_PathObject::path(), and CPDF_PageObject::SetDirty().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPath_Close()

Definition at line 142 of file fpdf_editpath.cpp.

References CPDF_Path::ClosePath(), CPDF_PathObject::path(), and CPDF_PageObject::SetDirty().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPath_CountSegments()

FPDF_EXPORT int FPDF_CALLCONV FPDFPath_CountSegments ( FPDF_PAGEOBJECT path)

Definition at line 79 of file fpdf_editpath.cpp.

References CPDF_PathObject::path().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPath_GetDrawMode()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_GetDrawMode ( FPDF_PAGEOBJECT path,
int * fillmode,
FPDF_BOOL * stroke )

Definition at line 174 of file fpdf_editpath.cpp.

References CPDF_PathObject::has_alternate_filltype(), CPDF_PathObject::has_winding_filltype(), and CPDF_PathObject::stroke().

Referenced by CheckPDFiumCApi(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPath_GetPathSegment()

FPDF_EXPORT FPDF_PATHSEGMENT FPDF_CALLCONV FPDFPath_GetPathSegment ( FPDF_PAGEOBJECT path,
int index )

Definition at line 87 of file fpdf_editpath.cpp.

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

◆ FPDFPath_LineTo()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_LineTo ( FPDF_PAGEOBJECT path,
float x,
float y )

Definition at line 111 of file fpdf_editpath.cpp.

References CPDF_Path::AppendPoint(), CFX_Path::Point::kLine, CPDF_PathObject::path(), and CPDF_PageObject::SetDirty().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPath_MoveTo()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_MoveTo ( FPDF_PAGEOBJECT path,
float x,
float y )

Definition at line 99 of file fpdf_editpath.cpp.

References CPDF_Path::AppendPoint(), CFX_Path::Point::kMove, CPDF_PathObject::path(), and CPDF_PageObject::SetDirty().

Referenced by CheckPDFiumCApi(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPath_SetDrawMode()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_SetDrawMode ( FPDF_PAGEOBJECT path,
int fillmode,
FPDF_BOOL stroke )

Definition at line 156 of file fpdf_editpath.cpp.

References CPDF_PathObject::set_alternate_filltype(), CPDF_PathObject::set_no_filltype(), CPDF_PathObject::set_stroke(), CPDF_PathObject::set_winding_filltype(), and CPDF_PageObject::SetDirty().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPathSegment_GetClose()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPathSegment_GetClose ( FPDF_PATHSEGMENT segment)

Definition at line 211 of file fpdf_editpath.cpp.

References FXPathPointFromFPDFPathSegment(), and CFX_Path::Point::m_CloseFigure.

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPathSegment_GetPoint()

FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPathSegment_GetPoint ( FPDF_PATHSEGMENT segment,
float * x,
float * y )

Definition at line 193 of file fpdf_editpath.cpp.

References FXPathPointFromFPDFPathSegment().

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FPDFPathSegment_GetType()

FPDF_EXPORT int FPDF_CALLCONV FPDFPathSegment_GetType ( FPDF_PATHSEGMENT segment)

Definition at line 204 of file fpdf_editpath.cpp.

References FXPathPointFromFPDFPathSegment(), and CFX_Path::Point::m_Type.

Referenced by CheckPDFiumCApi(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: