CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
CFxUIPainterPath Class Reference

#include <FxUIPainterPath.h>

Public Member Functions

 CFxUIPainterPath ()
 
 CFxUIPainterPath (const CFxUIPainterPath &painterPath)
 
 CFxUIPainterPath (const FxNativePainterPath &painterPath)
 
 ~CFxUIPainterPath ()
 
CFxUIPainterPathoperator= (const CFxUIPainterPath &painterPath)
 
 operator const FxNativePainterPath & () const
 
void addEllipse (int x, int y, int width, int height)
 
void addRoundedRect (CFxUIRect &rect, int xRadius, int yRadius)
 
void moveTo (int x, int y)
 
void lineTo (int x, int y)
 
void arcTo (const CFxUIRect &rect, int startAngle, int sweepLength)
 
CFxUIPolygonF toFillPolygon () const
 

Protected Attributes

CFxUIPainterPathImpl * m_pImpl = nullptr
 

Detailed Description

Definition at line 40 of file FxUIPainterPath.h.

Constructor & Destructor Documentation

◆ CFxUIPainterPath() [1/3]

CFxUIPainterPath::CFxUIPainterPath ( )

Constructor

◆ CFxUIPainterPath() [2/3]

CFxUIPainterPath::CFxUIPainterPath ( const CFxUIPainterPath & painterPath)

Copy Constructor

◆ CFxUIPainterPath() [3/3]

CFxUIPainterPath::CFxUIPainterPath ( const FxNativePainterPath & painterPath)

◆ ~CFxUIPainterPath()

CFxUIPainterPath::~CFxUIPainterPath ( )

Destructor

Member Function Documentation

◆ addEllipse()

void CFxUIPainterPath::addEllipse ( int x,
int y,
int width,
int height )

Creates an ellipse within the bounding rectangle defined by its top-left corner at (x, y), width and height, and adds it to the painter path as a closed subpath.

Parameters
x-coordinate
y-coordinate
width
height

◆ addRoundedRect()

void CFxUIPainterPath::addRoundedRect ( CFxUIRect & rect,
int xRadius,
int yRadius )

Creates a rounded rect with corner radius

Parameters
rect
xRadius
yRadius

◆ arcTo()

void CFxUIPainterPath::arcTo ( const CFxUIRect & rect,
int startAngle,
int sweepLength )

Creates an arc that occupies the given rectangle, beginning at the specified startAngle and extending sweepLength degrees counter-clockwise.

Parameters
CFxUIRect
startAngle
sweepLength

◆ lineTo()

void CFxUIPainterPath::lineTo ( int x,
int y )

Draws a line from the current position to the point (x, y).

Parameters
x-coordinate
y-coordinate

◆ moveTo()

void CFxUIPainterPath::moveTo ( int x,
int y )

Moves the current position to (x, y) and starts a new subpath, implicitly closing the previous path.

Parameters
x-coordinate
y-coordinate

◆ operator const FxNativePainterPath &()

CFxUIPainterPath::operator const FxNativePainterPath & ( ) const

◆ operator=()

CFxUIPainterPath & CFxUIPainterPath::operator= ( const CFxUIPainterPath & painterPath)

Assignment operator

◆ toFillPolygon()

CFxUIPolygonF CFxUIPainterPath::toFillPolygon ( ) const

Converts the path into a polygon, and returns the polygon.

Returns
CFxUIPolygonF

Member Data Documentation

◆ m_pImpl

CFxUIPainterPathImpl* CFxUIPainterPath::m_pImpl = nullptr
protected

Definition at line 120 of file FxUIPainterPath.h.


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