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
CFX_Path Class Reference

#include <cfx_path.h>

+ Inheritance diagram for CFX_Path:
+ Collaboration diagram for CFX_Path:

Classes

class  Point
 

Public Member Functions

 CFX_Path ()
 
 CFX_Path (const CFX_Path &src)
 
 CFX_Path (CFX_Path &&src) noexcept
 
 ~CFX_Path ()
 
void Clear ()
 
Point::Type GetType (size_t index) const
 
bool IsClosingFigure (size_t index) const
 
CFX_PointF GetPoint (size_t index) const
 
const std::vector< Point > & GetPoints () const
 
std::vector< Point > & GetPoints ()
 
CFX_FloatRect GetBoundingBox () const
 
CFX_FloatRect GetBoundingBoxForStrokePath (float line_width, float miter_limit) const
 
void Transform (const CFX_Matrix &matrix)
 
bool IsRect () const
 
absl::optional< CFX_FloatRectGetRect (const CFX_Matrix *matrix) const
 
void Append (const CFX_Path &src, const CFX_Matrix *matrix)
 
void AppendFloatRect (const CFX_FloatRect &rect)
 
void AppendRect (float left, float bottom, float right, float top)
 
void AppendLine (const CFX_PointF &pt1, const CFX_PointF &pt2)
 
void AppendPoint (const CFX_PointF &point, Point::Type type)
 
void AppendPointAndClose (const CFX_PointF &point, Point::Type type)
 
void ClosePath ()
 

Detailed Description

Definition at line 18 of file cfx_path.h.

Constructor & Destructor Documentation

◆ CFX_Path() [1/3]

CFX_Path::CFX_Path ( )
default

◆ CFX_Path() [2/3]

CFX_Path::CFX_Path ( const CFX_Path & src)
default

◆ CFX_Path() [3/3]

CFX_Path::CFX_Path ( CFX_Path && src)
defaultnoexcept

◆ ~CFX_Path()

CFX_Path::~CFX_Path ( )
default

Member Function Documentation

◆ Append()

void CFX_Path::Append ( const CFX_Path & src,
const CFX_Matrix * matrix )

Definition at line 275 of file cfx_path.cpp.

Referenced by TEST().

+ Here is the caller graph for this function:

◆ AppendFloatRect()

void CFX_Path::AppendFloatRect ( const CFX_FloatRect & rect)

Definition at line 305 of file cfx_path.cpp.

References AppendRect(), CFX_FloatRect::bottom, CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.

Referenced by CPDFSDK_Widget::DrawAppearance(), CPDF_Annot::DrawBorder(), CFX_RenderDevice::DrawFillRect(), CFX_RenderDevice::DrawStrokeRect(), and TEST().

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

◆ AppendLine()

void CFX_Path::AppendLine ( const CFX_PointF & pt1,
const CFX_PointF & pt2 )

Definition at line 297 of file cfx_path.cpp.

References AppendPoint(), CFX_Path::Point::kLine, and CFX_Path::Point::kMove.

Referenced by AppendRect(), TEST(), and TEST_F().

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

◆ AppendPoint()

void CFX_Path::AppendPoint ( const CFX_PointF & point,
Point::Type type )

Definition at line 289 of file cfx_path.cpp.

Referenced by AppendLine(), CPDF_Path::AppendPoint(), CFX_RenderDevice::DrawBorder(), CFX_RenderDevice::DrawFillArea(), CFX_DrawUtils::DrawFocusRect(), CFX_RenderDevice::DrawStrokeLine(), CPWL_Caret::DrawThisAppearance(), CPWL_CBButton::DrawThisAppearance(), CPWL_Edit::DrawThisAppearance(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

+ Here is the caller graph for this function:

◆ AppendPointAndClose()

void CFX_Path::AppendPointAndClose ( const CFX_PointF & point,
Point::Type type )

Definition at line 293 of file cfx_path.cpp.

Referenced by CPDF_Path::AppendPointAndClose(), TEST(), and TEST().

+ Here is the caller graph for this function:

◆ AppendRect()

void CFX_Path::AppendRect ( float left,
float bottom,
float right,
float top )

Definition at line 309 of file cfx_path.cpp.

References AppendLine(), and ClosePath().

Referenced by CPSPrinterDriver::CPSPrinterDriver(), AppendFloatRect(), CFX_RenderDevice::DrawBorder(), CPWL_EditImpl::DrawEdit(), CPDF_RenderStatus::ProcessClipPath(), CBC_OneDimWriter::RenderDeviceResult(), CBC_TwoDimWriter::RenderDeviceResult(), CFX_RenderDevice::SetClip_Rect(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), and XFA_DrawImage().

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

◆ Clear()

void CFX_Path::Clear ( )

Definition at line 265 of file cfx_path.cpp.

Referenced by TEST(), TEST(), TEST(), and TEST().

+ Here is the caller graph for this function:

◆ ClosePath()

void CFX_Path::ClosePath ( )

Definition at line 269 of file cfx_path.cpp.

Referenced by AppendRect(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

◆ GetBoundingBox()

CFX_FloatRect CFX_Path::GetBoundingBox ( ) const

Definition at line 322 of file cfx_path.cpp.

References CFX_FloatRect::CFX_FloatRect().

Referenced by CGdiDeviceDriver::DrawPath(), CFX_PSRenderer::SetClip_PathFill(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

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

◆ GetBoundingBoxForStrokePath()

CFX_FloatRect CFX_Path::GetBoundingBoxForStrokePath ( float line_width,
float miter_limit ) const

Definition at line 332 of file cfx_path.cpp.

References CFX_FloatRect::CFX_FloatRect().

Referenced by CFX_PSRenderer::SetClip_PathStroke(), and TEST().

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

◆ GetPoint()

CFX_PointF CFX_Path::GetPoint ( size_t index) const
inline

Definition at line 49 of file cfx_path.h.

◆ GetPoints() [1/2]

std::vector< Point > & CFX_Path::GetPoints ( )
inline

Definition at line 51 of file cfx_path.h.

◆ GetPoints() [2/2]

const std::vector< Point > & CFX_Path::GetPoints ( ) const
inline

Definition at line 50 of file cfx_path.h.

◆ GetRect()

absl::optional< CFX_FloatRect > CFX_Path::GetRect ( const CFX_Matrix * matrix) const

Definition at line 403 of file cfx_path.cpp.

References CFX_Matrix::Transform().

+ Here is the call graph for this function:

◆ GetType()

Point::Type CFX_Path::GetType ( size_t index) const
inline

Definition at line 45 of file cfx_path.h.

◆ IsClosingFigure()

bool CFX_Path::IsClosingFigure ( size_t index) const
inline

Definition at line 46 of file cfx_path.h.

◆ IsRect()

bool CFX_Path::IsRect ( ) const

Definition at line 397 of file cfx_path.cpp.

Referenced by CGdiDeviceDriver::DrawPath(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

+ Here is the caller graph for this function:

◆ Transform()

void CFX_Path::Transform ( const CFX_Matrix & matrix)

Definition at line 392 of file cfx_path.cpp.

Referenced by TEST(), and TEST().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: