CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIPainterPath.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
22
24#include "FxUIRect.h"
25#include "FxUIPolygonF.h"
26
27#if defined( XENON )
28namespace Wt
29{
30 class WPainterPath;
31}
32using FxNativePainterPath = Wt::WPainterPath;
33#else
34class QPainterPath;
35using FxNativePainterPath = QPainterPath;
36#endif
37
38class CFxUIPainterPathImpl;
39
41{
42public:
43
46
48 CFxUIPainterPath( const CFxUIPainterPath& painterPath );
50
53
56
57 operator const FxNativePainterPath&() const;
58
70 void addEllipse( int x, int y, int width, int height );
71
81 void addRoundedRect( CFxUIRect& rect, int xRadius, int yRadius );
82
90 void moveTo( int x, int y );
91
99 void lineTo( int x, int y );
100
110 void arcTo( const CFxUIRect& rect, int startAngle, int sweepLength );
111
118
119protected:
120 CFxUIPainterPathImpl* m_pImpl = nullptr;
121};
#define COMMONUI_API
QPainterPath FxNativePainterPath
void addRoundedRect(CFxUIRect &rect, int xRadius, int yRadius)
void addEllipse(int x, int y, int width, int height)
CFxUIPainterPath & operator=(const CFxUIPainterPath &painterPath)
CFxUIPolygonF toFillPolygon() const
void lineTo(int x, int y)
void arcTo(const CFxUIRect &rect, int startAngle, int sweepLength)
CFxUIPainterPath(const CFxUIPainterPath &painterPath)
CFxUIPainterPath(const FxNativePainterPath &painterPath)
CFxUIPainterPathImpl * m_pImpl
void moveTo(int x, int y)
GLint GLenum GLsizei width
Definition gles2_ext.h:110
GLfloat x
Definition gles2_ext.h:314
GLint GLenum GLsizei GLsizei height
Definition gles2_ext.h:110
GLfloat GLfloat y
Definition gles2_ext.h:316
Definition FxString.h:30