#include <FxUIPainter.h>
|
| | CFxUIPainter () |
| |
| | CFxUIPainter (CFxUIPaintDevice *paintDevice) |
| |
| | ~CFxUIPainter () |
| |
| | operator FxNativePainter * () const |
| |
| void | begin (CFxUIPaintDevice *paintDevice) |
| |
| void | end () |
| |
| void | drawEllipse (int x, int y, int width, int height) |
| |
| void | drawPixmap (int x, int y, const CFxUIPixmap &pixmap) |
| |
| void | drawPolygon (const CFxUIPolygonF &points, FillRule fillRule=OddEvenFill) |
| |
| void | drawRect (int x, int y, int width, int height) |
| |
| void | drawText (int x, int y, const CFxUIString &text) |
| |
| void | drawText (const CFxUIRect &rectangle, int flags, const CFxUIString &text, CFxUIRect *boundingRect=nullptr) |
| |
| void | drawPixmap (int x, int y, int w, int h, const CFxUIPixmap &pm) |
| |
| void | fillRect (int x, int y, int widht, int height, const CFxUIColor &color) |
| |
| void | fillPath (const CFxUIPainterPath &path, const CFxUIBrush &brush) |
| |
| void | restore () |
| |
| void | save () |
| |
| void | setBrush (const CFxUIColor &color) |
| |
| void | setFont (CFxUIFont &font) |
| |
| void | setPen (const CFxUIColor &color) |
| |
| void | setRenderHint (RenderHint hint, bool on=true) |
| |
|
| CFxUIPainterImpl * | m_pImpl = nullptr |
| |
Definition at line 50 of file FxUIPainter.h.
◆ FillRule
| Enumerator |
|---|
| OddEvenFill | |
| WindingFill | |
Definition at line 62 of file FxUIPainter.h.
◆ RenderHint
| Enumerator |
|---|
| Antialiasing | |
| TextAntialiasing | |
| SmoothPixmapTransform | |
| Qt4CompatiblePainting | |
| LosslessImageRendering | |
Definition at line 53 of file FxUIPainter.h.
◆ CFxUIPainter() [1/2]
| CFxUIPainter::CFxUIPainter |
( |
| ) |
|
◆ CFxUIPainter() [2/2]
◆ ~CFxUIPainter()
| CFxUIPainter::~CFxUIPainter |
( |
| ) |
|
◆ begin()
Begins painting the paintDevice
- Parameters
-
◆ drawEllipse()
| void CFxUIPainter::drawEllipse |
( |
int | x, |
|
|
int | y, |
|
|
int | width, |
|
|
int | height ) |
Draws the ellipse defined by the rectangle beginning at (x, y) with the given width and height.
- Parameters
-
| x-coordinate | |
| y-coordinate | |
| width | |
| height | |
◆ drawPixmap() [1/2]
Draws the rectangular portion source of the given pixmap into the given target in the paint device.
- Parameters
-
◆ drawPixmap() [2/2]
| void CFxUIPainter::drawPixmap |
( |
int | x, |
|
|
int | y, |
|
|
int | w, |
|
|
int | h, |
|
|
const CFxUIPixmap & | pm ) |
Draws the pixmap into the rectangle at position (x, y) with the given width and height.
- Parameters
-
◆ drawPolygon()
Draws the polygon defined by the first pointCount points in the array points using the current pen and brush.
- Parameters
-
◆ drawRect()
| void CFxUIPainter::drawRect |
( |
int | x, |
|
|
int | y, |
|
|
int | width, |
|
|
int | height ) |
Draws a rectangle with upper left corner at (x, y) and with the given width and height.
- Parameters
-
| x-coordinate | |
| y-coordinate | |
| width | |
| height | |
◆ drawText() [1/2]
Draws the given text within the provided rectangle according to the specified flags.
- Parameters
-
◆ drawText() [2/2]
Draws the given text at position (x, y), using the painter's currently defined text direction.
- Parameters
-
◆ end()
| void CFxUIPainter::end |
( |
| ) |
|
◆ fillPath()
Fills the given path using the given brush. The outline is not drawn.
- Parameters
-
◆ fillRect()
| void CFxUIPainter::fillRect |
( |
int | x, |
|
|
int | y, |
|
|
int | widht, |
|
|
int | height, |
|
|
const CFxUIColor & | color ) |
Fills the rectangle beginning at (x, y) with the given width and height, using the given color.
- Parameters
-
◆ operator FxNativePainter *()
◆ restore()
| void CFxUIPainter::restore |
( |
| ) |
|
Restores the current painter state.
◆ save()
| void CFxUIPainter::save |
( |
| ) |
|
Saves the current painter state
◆ setBrush()
Sets the painter's brush to the given brush.
- Parameters
-
◆ setFont()
Sets the painter's font to the given font.
- Parameters
-
◆ setPen()
Sets the painter's pen width to 1 and the specified color.
- Parameters
-
◆ setRenderHint()
Sets the given render hints on the painter.
- Parameters
-
◆ m_pImpl
| CFxUIPainterImpl* CFxUIPainter::m_pImpl = nullptr |
|
protected |
The documentation for this class was generated from the following file: