Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfx_path.h>
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_FloatRect > | GetRect (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 () |
Definition at line 18 of file cfx_path.h.
|
default |
|
default |
|
defaultnoexcept |
|
default |
void CFX_Path::Append | ( | const CFX_Path & | src, |
const CFX_Matrix * | matrix ) |
Definition at line 275 of file cfx_path.cpp.
Referenced by TEST().
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().
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().
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().
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().
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().
void CFX_Path::Clear | ( | ) |
void CFX_Path::ClosePath | ( | ) |
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().
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().
|
inline |
Definition at line 49 of file cfx_path.h.
|
inline |
Definition at line 51 of file cfx_path.h.
|
inline |
Definition at line 50 of file cfx_path.h.
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().
|
inline |
Definition at line 45 of file cfx_path.h.
|
inline |
Definition at line 46 of file cfx_path.h.
bool CFX_Path::IsRect | ( | ) | const |
void CFX_Path::Transform | ( | const CFX_Matrix & | matrix | ) |
Definition at line 392 of file cfx_path.cpp.
Referenced by TEST(), and TEST().