Definition at line 85 of file qpainter.h.
#include <qpainter.h>

Classes |
|
| class | PixmapFragment |
Public Types |
|
| enum | RenderHint
{ Antialiasing = 0x01, TextAntialiasing = 0x02, SmoothPixmapTransform = 0x04, HighQualityAntialiasing = 0x08, NonCosmeticDefaultPen = 0x10 } |
| enum | PixmapFragmentHint { OpaqueHint = 0x01 } |
| enum | CompositionMode
{ CompositionMode_SourceOver, CompositionMode_DestinationOver, CompositionMode_Clear, CompositionMode_Source, CompositionMode_Destination, CompositionMode_SourceIn, CompositionMode_DestinationIn, CompositionMode_SourceOut, CompositionMode_DestinationOut, CompositionMode_SourceAtop, CompositionMode_DestinationAtop, CompositionMode_Xor, CompositionMode_Plus, CompositionMode_Multiply, CompositionMode_Screen, CompositionMode_Overlay, CompositionMode_Darken, CompositionMode_Lighten, CompositionMode_ColorDodge, CompositionMode_ColorBurn, CompositionMode_HardLight, CompositionMode_SoftLight, CompositionMode_Difference, CompositionMode_Exclusion, RasterOp_SourceOrDestination, RasterOp_SourceAndDestination, RasterOp_SourceXorDestination, RasterOp_NotSourceAndNotDestination, RasterOp_NotSourceOrNotDestination, RasterOp_NotSourceXorDestination, RasterOp_NotSource, RasterOp_NotSourceAndDestination, RasterOp_SourceAndNotDestination } |
Public Member Functions |
|
| QPainter () | |
| QPainter (QPaintDevice *) | |
| ~QPainter () | |
| QPaintDevice * | device () const |
| bool | begin (QPaintDevice *) |
| bool | end () |
| bool | isActive () const |
| void | initFrom (const QWidget *widget) |
| void | setCompositionMode (CompositionMode mode) |
| CompositionMode | compositionMode () const |
| const QFont & | font () const |
| void | setFont (const QFont &f) |
| QFontMetrics | fontMetrics () const |
| QFontInfo | fontInfo () const |
| void | setPen (const QColor &color) |
| void | setPen (const QPen &pen) |
| void | setPen (Qt::PenStyle style) |
| const QPen & | pen () const |
| void | setBrush (const QBrush &brush) |
| void | setBrush (Qt::BrushStyle style) |
| const QBrush & | brush () const |
| void | setBackgroundMode (Qt::BGMode mode) |
| Qt::BGMode | backgroundMode () const |
| QPoint | brushOrigin () const |
| void | setBrushOrigin (int x, int y) |
| void | setBrushOrigin (const QPoint &) |
| void | setBrushOrigin (const QPointF &) |
| void | setBackground (const QBrush &bg) |
| const QBrush & | background () const |
| qreal | opacity () const |
| void | setOpacity (qreal opacity) |
| QRegion | clipRegion () const |
| QPainterPath | clipPath () const |
| void | setClipRect (const QRectF &, Qt::ClipOperation op=Qt::ReplaceClip) |
| void | setClipRect (const QRect &, Qt::ClipOperation op=Qt::ReplaceClip) |
| void | setClipRect (int x, int y, int w, int h, Qt::ClipOperation op=Qt::ReplaceClip) |
| void | setClipRegion (const QRegion &, Qt::ClipOperation op=Qt::ReplaceClip) |
| void | setClipPath (const QPainterPath &path, Qt::ClipOperation op=Qt::ReplaceClip) |
| void | setClipping (bool enable) |
| bool | hasClipping () const |
| void | save () |
| void | restore () |
| void | setMatrix (const QMatrix &matrix, bool combine=false) |
| const QMatrix & | matrix () const |
| const QMatrix & | deviceMatrix () const |
| void | resetMatrix () |
| void | setTransform (const QTransform &transform, bool combine=false) |
| const QTransform & | transform () const |
| const QTransform & | deviceTransform () const |
| void | resetTransform () |
| void | setWorldMatrix (const QMatrix &matrix, bool combine=false) |
| const QMatrix & | worldMatrix () const |
| void | setWorldTransform (const QTransform &matrix, bool combine=false) |
| const QTransform & | worldTransform () const |
| QMatrix | combinedMatrix () const |
| QTransform | combinedTransform () const |
| void | setMatrixEnabled (bool enabled) |
| bool | matrixEnabled () const |
| void | setWorldMatrixEnabled (bool enabled) |
| bool | worldMatrixEnabled () const |
| void | scale (qreal sx, qreal sy) |
| void | shear (qreal sh, qreal sv) |
| void | rotate (qreal a) |
| void | translate (const QPointF &offset) |
| void | translate (const QPoint &offset) |
| void | translate (qreal dx, qreal dy) |
| QRect | window () const |
| void | setWindow (const QRect &window) |
| void | setWindow (int x, int y, int w, int h) |
| QRect | viewport () const |
| void | setViewport (const QRect &viewport) |
| void | setViewport (int x, int y, int w, int h) |
| void | setViewTransformEnabled (bool enable) |
| bool | viewTransformEnabled () const |
| void | strokePath (const QPainterPath &path, const QPen &pen) |
| void | fillPath (const QPainterPath &path, const QBrush &brush) |
| void | drawPath (const QPainterPath &path) |
| void | drawPoint (const QPointF &pt) |
| void | drawPoint (const QPoint &p) |
| void | drawPoint (int x, int y) |
| void | drawPoints (const QPointF *points, int pointCount) |
| void | drawPoints (const QPolygonF &points) |
| void | drawPoints (const QPoint *points, int pointCount) |
| void | drawPoints (const QPolygon &points) |
| void | drawLine (const QLineF &line) |
| void | drawLine (const QLine &line) |
| void | drawLine (int x1, int y1, int x2, int y2) |
| void | drawLine (const QPoint &p1, const QPoint &p2) |
| void | drawLine (const QPointF &p1, const QPointF &p2) |
| void | drawLines (const QLineF *lines, int lineCount) |
| void | drawLines (const QVector< QLineF > &lines) |
| void | drawLines (const QPointF *pointPairs, int lineCount) |
| void | drawLines (const QVector< QPointF > &pointPairs) |
| void | drawLines (const QLine *lines, int lineCount) |
| void | drawLines (const QVector< QLine > &lines) |
| void | drawLines (const QPoint *pointPairs, int lineCount) |
| void | drawLines (const QVector< QPoint > &pointPairs) |
| void | drawRect (const QRectF &rect) |
| void | drawRect (int x1, int y1, int w, int h) |
| void | drawRect (const QRect &rect) |
| void | drawRects (const QRectF *rects, int rectCount) |
| void | drawRects (const QVector< QRectF > &rectangles) |
| void | drawRects (const QRect *rects, int rectCount) |
| void | drawRects (const QVector< QRect > &rectangles) |
| void | drawEllipse (const QRectF &r) |
| void | drawEllipse (const QRect &r) |
| void | drawEllipse (int x, int y, int w, int h) |
| void | drawEllipse (const QPointF ¢er, qreal rx, qreal ry) |
| void | drawEllipse (const QPoint ¢er, int rx, int ry) |
| void | drawPolyline (const QPointF *points, int pointCount) |
| void | drawPolyline (const QPolygonF &polyline) |
| void | drawPolyline (const QPoint *points, int pointCount) |
| void | drawPolyline (const QPolygon &polygon) |
| void | drawPolygon (const QPointF *points, int pointCount, Qt::FillRule fillRule=Qt::OddEvenFill) |
| void | drawPolygon (const QPolygonF &polygon, Qt::FillRule fillRule=Qt::OddEvenFill) |
| void | drawPolygon (const QPoint *points, int pointCount, Qt::FillRule fillRule=Qt::OddEvenFill) |
| void | drawPolygon (const QPolygon &polygon, Qt::FillRule fillRule=Qt::OddEvenFill) |
| void | drawConvexPolygon (const QPointF *points, int pointCount) |
| void | drawConvexPolygon (const QPolygonF &polygon) |
| void | drawConvexPolygon (const QPoint *points, int pointCount) |
| void | drawConvexPolygon (const QPolygon &polygon) |
| void | drawArc (const QRectF &rect, int a, int alen) |
| void | drawArc (const QRect &, int a, int alen) |
| void | drawArc (int x, int y, int w, int h, int a, int alen) |
| void | drawPie (const QRectF &rect, int a, int alen) |
| void | drawPie (int x, int y, int w, int h, int a, int alen) |
| void | drawPie (const QRect &, int a, int alen) |
| void | drawChord (const QRectF &rect, int a, int alen) |
| void | drawChord (int x, int y, int w, int h, int a, int alen) |
| void | drawChord (const QRect &, int a, int alen) |
| void | drawRoundedRect (const QRectF &rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode=Qt::AbsoluteSize) |
| void | drawRoundedRect (int x, int y, int w, int h, qreal xRadius, qreal yRadius, Qt::SizeMode mode=Qt::AbsoluteSize) |
| void | drawRoundedRect (const QRect &rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode=Qt::AbsoluteSize) |
| void | drawRoundRect (const QRectF &r, int xround=25, int yround=25) |
| void | drawRoundRect (int x, int y, int w, int h, int=25, int=25) |
| void | drawRoundRect (const QRect &r, int xround=25, int yround=25) |
| void | drawTiledPixmap (const QRectF &rect, const QPixmap &pm, const QPointF &offset=QPointF()) |
| void | drawTiledPixmap (int x, int y, int w, int h, const QPixmap &, int sx=0, int sy=0) |
| void | drawTiledPixmap (const QRect &, const QPixmap &, const QPoint &=QPoint()) |
| void | drawPicture (const QPointF &p, const QPicture &picture) |
| void | drawPicture (int x, int y, const QPicture &picture) |
| void | drawPicture (const QPoint &p, const QPicture &picture) |
| void | drawPixmap (const QRectF &targetRect, const QPixmap &pixmap, const QRectF &sourceRect) |
| void | drawPixmap (const QRect &targetRect, const QPixmap &pixmap, const QRect &sourceRect) |
| void | drawPixmap (int x, int y, int w, int h, const QPixmap &pm, int sx, int sy, int sw, int sh) |
| void | drawPixmap (int x, int y, const QPixmap &pm, int sx, int sy, int sw, int sh) |
| void | drawPixmap (const QPointF &p, const QPixmap &pm, const QRectF &sr) |
| void | drawPixmap (const QPoint &p, const QPixmap &pm, const QRect &sr) |
| void | drawPixmap (const QPointF &p, const QPixmap &pm) |
| void | drawPixmap (const QPoint &p, const QPixmap &pm) |
| void | drawPixmap (int x, int y, const QPixmap &pm) |
| void | drawPixmap (const QRect &r, const QPixmap &pm) |
| void | drawPixmap (int x, int y, int w, int h, const QPixmap &pm) |
| void | drawPixmapFragments (const PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, PixmapFragmentHints hints=0) |
| void | drawImage (const QRectF &targetRect, const QImage &image, const QRectF &sourceRect, Qt::ImageConversionFlags flags=Qt::AutoColor) |
| void | drawImage (const QRect &targetRect, const QImage &image, const QRect &sourceRect, Qt::ImageConversionFlags flags=Qt::AutoColor) |
| void | drawImage (const QPointF &p, const QImage &image, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) |
| void | drawImage (const QPoint &p, const QImage &image, const QRect &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) |
| void | drawImage (const QRectF &r, const QImage &image) |
| void | drawImage (const QRect &r, const QImage &image) |
| void | drawImage (const QPointF &p, const QImage &image) |
| void | drawImage (const QPoint &p, const QImage &image) |
| void | drawImage (int x, int y, const QImage &image, int sx=0, int sy=0, int sw=-1, int sh=-1, Qt::ImageConversionFlags flags=Qt::AutoColor) |
| void | setLayoutDirection (Qt::LayoutDirection direction) |
| Qt::LayoutDirection | layoutDirection () const |
| void | drawStaticText (const QPointF &topLeftPosition, const QStaticText &staticText) |
| void | drawStaticText (const QPoint &topLeftPosition, const QStaticText &staticText) |
| void | drawStaticText (int left, int top, const QStaticText &staticText) |
| void | drawText (const QPointF &p, const QString &s) |
| void | drawText (const QPoint &p, const QString &s) |
| void | drawText (int x, int y, const QString &s) |
| void | drawText (const QPointF &p, const QString &str, int tf, int justificationPadding) |
| void | drawText (const QRectF &r, int flags, const QString &text, QRectF *br=0) |
| void | drawText (const QRect &r, int flags, const QString &text, QRect *br=0) |
| void | drawText (int x, int y, int w, int h, int flags, const QString &text, QRect *br=0) |
| void | drawText (const QRectF &r, const QString &text, const QTextOption &o=QTextOption()) |
| QRectF | boundingRect (const QRectF &rect, int flags, const QString &text) |
| QRect | boundingRect (const QRect &rect, int flags, const QString &text) |
| QRect | boundingRect (int x, int y, int w, int h, int flags, const QString &text) |
| QRectF | boundingRect (const QRectF &rect, const QString &text, const QTextOption &o=QTextOption()) |
| void | drawTextItem (const QPointF &p, const QTextItem &ti) |
| void | drawTextItem (int x, int y, const QTextItem &ti) |
| void | drawTextItem (const QPoint &p, const QTextItem &ti) |
| void | fillRect (const QRectF &, const QBrush &) |
| void | fillRect (int x, int y, int w, int h, const QBrush &) |
| void | fillRect (const QRect &, const QBrush &) |
| void | fillRect (const QRectF &, const QColor &color) |
| void | fillRect (int x, int y, int w, int h, const QColor &color) |
| void | fillRect (const QRect &, const QColor &color) |
| void | fillRect (int x, int y, int w, int h, Qt::GlobalColor c) |
| void | fillRect (const QRect &r, Qt::GlobalColor c) |
| void | fillRect (const QRectF &r, Qt::GlobalColor c) |
| void | fillRect (int x, int y, int w, int h, Qt::BrushStyle style) |
| void | fillRect (const QRect &r, Qt::BrushStyle style) |
| void | fillRect (const QRectF &r, Qt::BrushStyle style) |
| void | eraseRect (const QRectF &) |
| void | eraseRect (int x, int y, int w, int h) |
| void | eraseRect (const QRect &) |
| void | setRenderHint (RenderHint hint, bool on=true) |
| void | setRenderHints (RenderHints hints, bool on=true) |
| RenderHints | renderHints () const |
| bool | testRenderHint (RenderHint hint) const |
| QPaintEngine * | paintEngine () const |
| void | beginNativePainting () |
| void | endNativePainting () |
Static Public Member Functions |
|
| static void | setRedirected (const QPaintDevice *device, QPaintDevice *replacement, const QPoint &offset=QPoint()) |
| static QPaintDevice * | redirected (const QPaintDevice *device, QPoint *offset=0) |
| static void | restoreRedirected (const QPaintDevice *device) |
Friends |
|
| class | Q3Painter |
| class | QFontEngine |
| class | QFontEngineBox |
| class | QFontEngineFT |
| class | QFontEngineMac |
| class | QFontEngineWin |
| class | QFontEngineXLFD |
| class | QWSManager |
| class | QPaintEngine |
| class | QPaintEngineExPrivate |
| class | QOpenGLPaintEngine |
| class | QX11PaintEngine |
| class | QX11PaintEnginePrivate |
| class | QWin32PaintEngine |
| class | QWin32PaintEnginePrivate |
| class | QRasterPaintEngine |
| class | QAlphaPaintEngine |
| class | QPreviewPaintEngine |
| enum RenderHint |
| Antialiasing | |
| TextAntialiasing | |
| SmoothPixmapTransform | |
| HighQualityAntialiasing | |
| NonCosmeticDefaultPen |
Definition at line 92 of file qpainter.h.
{
Antialiasing = 0x01,
TextAntialiasing = 0x02,
SmoothPixmapTransform = 0x04,
HighQualityAntialiasing = 0x08,
NonCosmeticDefaultPen = 0x10
};
| enum PixmapFragmentHint |
Definition at line 119 of file qpainter.h.
{
OpaqueHint = 0x01
};
| enum CompositionMode |
Definition at line 137 of file qpainter.h.
{
CompositionMode_SourceOver,
CompositionMode_DestinationOver,
CompositionMode_Clear,
CompositionMode_Source,
CompositionMode_Destination,
CompositionMode_SourceIn,
CompositionMode_DestinationIn,
CompositionMode_SourceOut,
CompositionMode_DestinationOut,
CompositionMode_SourceAtop,
CompositionMode_DestinationAtop,
CompositionMode_Xor,
//svg 1.2 blend modes
CompositionMode_Plus,
CompositionMode_Multiply,
CompositionMode_Screen,
CompositionMode_Overlay,
CompositionMode_Darken,
CompositionMode_Lighten,
CompositionMode_ColorDodge,
CompositionMode_ColorBurn,
CompositionMode_HardLight,
CompositionMode_SoftLight,
CompositionMode_Difference,
CompositionMode_Exclusion,
// ROPs
RasterOp_SourceOrDestination,
RasterOp_SourceAndDestination,
RasterOp_SourceXorDestination,
RasterOp_NotSourceAndNotDestination,
RasterOp_NotSourceOrNotDestination,
RasterOp_NotSourceXorDestination,
RasterOp_NotSource,
RasterOp_NotSourceAndDestination,
RasterOp_SourceAndNotDestination
};
| QPainter | ( | ) |
| QPainter | ( | QPaintDevice * | ) | [explicit] |
| ~QPainter | ( | ) |
| QPaintDevice* device | ( | ) | const |
| bool begin | ( | QPaintDevice * | ) |
| bool end | ( | ) |
| bool isActive | ( | ) | const |
| void initFrom | ( | const QWidget * | widget | ) |
| void setCompositionMode | ( | CompositionMode | mode | ) |
| CompositionMode compositionMode | ( | ) | const |
| const QFont& font | ( | ) | const |
| void setFont | ( | const QFont & | f | ) |
| QFontMetrics fontMetrics | ( | ) | const |
| QFontInfo fontInfo | ( | ) | const |
| void setPen | ( | const QColor & | color | ) |
| void setPen | ( | const QPen & | pen | ) |
| void setPen | ( | Qt::PenStyle | style | ) |
| const QPen& pen | ( | ) | const |
| void setBrush | ( | const QBrush & | brush | ) |
| void setBrush | ( | Qt::BrushStyle | style | ) |
| const QBrush& brush | ( | ) | const |
| void setBackgroundMode | ( | Qt::BGMode | mode | ) |
| Qt::BGMode backgroundMode | ( | ) | const |
| QPoint brushOrigin | ( | ) | const |
| void setBrushOrigin | ( | int | x, |
| int | y | ||
| ) | [inline] |
Definition at line 815 of file qpainter.h.
{
setBrushOrigin(QPoint(x, y));
}
| void setBrushOrigin | ( | const QPoint & | p | ) | [inline] |
Definition at line 820 of file qpainter.h.
{
setBrushOrigin(QPointF(p));
}
| void setBrushOrigin | ( | const QPointF & | ) |
| void setBackground | ( | const QBrush & | bg | ) |
| const QBrush& background | ( | ) | const |
| qreal opacity | ( | ) | const |
| void setOpacity | ( | qreal | opacity | ) |
| QRegion clipRegion | ( | ) | const |
| QPainterPath clipPath | ( | ) | const |
| void setClipRect | ( | const QRectF & | , |
| Qt::ClipOperation | op =
Qt::ReplaceClip |
||
| ) |
| void setClipRect | ( | const QRect & | , |
| Qt::ClipOperation | op =
Qt::ReplaceClip |
||
| ) |
| void setClipRect | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Qt::ClipOperation | op =
Qt::ReplaceClip |
||
| ) | [inline] |
Definition at line 759 of file qpainter.h.
{
setClipRect(QRect(x, y, w, h), op);
}
| void setClipRegion | ( | const QRegion & | , |
| Qt::ClipOperation | op =
Qt::ReplaceClip |
||
| ) |
| void setClipPath | ( | const QPainterPath & | path, |
| Qt::ClipOperation | op =
Qt::ReplaceClip |
||
| ) |
| void setClipping | ( | bool | enable | ) |
| bool hasClipping | ( | ) | const |
| void save | ( | ) |
| void restore | ( | ) |
| void setMatrix | ( | const QMatrix & | matrix, |
| bool | combine =
false |
||
| ) |
| const QMatrix& matrix | ( | ) | const |
| const QMatrix& deviceMatrix | ( | ) | const |
| void resetMatrix | ( | ) |
| void setTransform | ( | const QTransform & | transform, |
| bool | combine =
false |
||
| ) |
| const QTransform& transform | ( | ) | const |
| const QTransform& deviceTransform | ( | ) | const |
| void resetTransform | ( | ) |
| void setWorldMatrix | ( | const QMatrix & | matrix, |
| bool | combine =
false |
||
| ) |
| const QMatrix& worldMatrix | ( | ) | const |
| void setWorldTransform | ( | const QTransform & | matrix, |
| bool | combine =
false |
||
| ) |
| const QTransform& worldTransform | ( | ) | const |
| QMatrix combinedMatrix | ( | ) | const |
| QTransform combinedTransform | ( | ) | const |
| void setMatrixEnabled | ( | bool | enabled | ) |
| bool matrixEnabled | ( | ) | const |
| void setWorldMatrixEnabled | ( | bool | enabled | ) |
| bool worldMatrixEnabled | ( | ) | const |
| void scale | ( | qreal | sx, |
| qreal | sy | ||
| ) |
| void shear | ( | qreal | sh, |
| qreal | sv | ||
| ) |
| void rotate | ( | qreal | a | ) |
| void translate | ( | const QPointF & | offset | ) |
| void translate | ( | const QPoint & | offset | ) | [inline] |
Definition at line 970 of file qpainter.h.
| void translate | ( | qreal | dx, |
| qreal | dy | ||
| ) | [inline] |
Definition at line 965 of file qpainter.h.
| QRect window | ( | ) | const |
| void setWindow | ( | const QRect & | window | ) |
| void setWindow | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) | [inline] |
Definition at line 980 of file qpainter.h.
| QRect viewport | ( | ) | const |
| void setViewport | ( | const QRect & | viewport | ) |
| void setViewport | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) | [inline] |
Definition at line 975 of file qpainter.h.
{
setViewport(QRect(x, y, w, h));
}
| void setViewTransformEnabled | ( | bool | enable | ) |
| bool viewTransformEnabled | ( | ) | const |
| void strokePath | ( | const QPainterPath & | path, |
| const QPen & | pen | ||
| ) |
| void fillPath | ( | const QPainterPath & | path, |
| const QBrush & | brush | ||
| ) |
| void drawPath | ( | const QPainterPath & | path | ) |
| void drawPoint | ( | const QPointF & | pt | ) | [inline] |
| void drawPoint | ( | const QPoint & | p | ) | [inline] |
| void drawPoint | ( | int | x, |
| int | y | ||
| ) | [inline] |
Definition at line 671 of file qpainter.h.
{
QPoint p(x, y);
drawPoints(&p, 1);
}
| void drawPoints | ( | const QPointF * | points, |
| int | pointCount | ||
| ) |
| void drawPoints | ( | const QPolygonF & | points | ) | [inline] |
Definition at line 682 of file qpainter.h.
{
drawPoints(points.constData(), points.size());
}
| void drawPoints | ( | const QPoint * | points, |
| int | pointCount | ||
| ) |
| void drawPoints | ( | const QPolygon & | points | ) | [inline] |
Definition at line 687 of file qpainter.h.
{
drawPoints(points.constData(), points.size());
}
| void drawLine | ( | const QLineF & | line | ) | [inline] |
| void drawLine | ( | const QLine & | line | ) | [inline] |
| void drawLine | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2 | ||
| ) | [inline] |
Definition at line 573 of file qpainter.h.
Definition at line 579 of file qpainter.h.
| void drawLines | ( | const QLineF * | lines, |
| int | lineCount | ||
| ) |
Definition at line 590 of file qpainter.h.
| void drawLines | ( | const QPointF * | pointPairs, |
| int | lineCount | ||
| ) |
Definition at line 600 of file qpainter.h.
| void drawLines | ( | const QLine * | lines, |
| int | lineCount | ||
| ) |
Definition at line 595 of file qpainter.h.
| void drawLines | ( | const QPoint * | pointPairs, |
| int | lineCount | ||
| ) |
Definition at line 605 of file qpainter.h.
| void drawRect | ( | const QRectF & | rect | ) | [inline] |
| void drawRect | ( | int | x1, |
| int | y1, | ||
| int | w, | ||
| int | h | ||
| ) | [inline] |
Definition at line 645 of file qpainter.h.
| void drawRect | ( | const QRect & | rect | ) | [inline] |
| void drawRects | ( | const QRectF * | rects, |
| int | rectCount | ||
| ) |
Definition at line 656 of file qpainter.h.
{
drawRects(rects.constData(), rects.size());
}
| void drawRects | ( | const QRect * | rects, |
| int | rectCount | ||
| ) |
Definition at line 661 of file qpainter.h.
{
drawRects(rects.constData(), rects.size());
}
| void drawEllipse | ( | const QRectF & | r | ) |
| void drawEllipse | ( | const QRect & | r | ) |
| void drawEllipse | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) | [inline] |
Definition at line 714 of file qpainter.h.
{
drawEllipse(QRect(x, y, w, h));
}
| void drawEllipse | ( | const QPointF & | center, |
| qreal | rx, | ||
| qreal | ry | ||
| ) | [inline] |
Definition at line 719 of file qpainter.h.
{
drawEllipse(QRectF(center.x() - rx, center.y() - ry, 2 * rx, 2 * ry));
}
| void drawEllipse | ( | const QPoint & | center, |
| int | rx, | ||
| int | ry | ||
| ) | [inline] |
Definition at line 724 of file qpainter.h.
{
drawEllipse(QRect(center.x() - rx, center.y() - ry, 2 * rx, 2 * ry));
}
| void drawPolyline | ( | const QPointF * | points, |
| int | pointCount | ||
| ) |
| void drawPolyline | ( | const QPolygonF & | polyline | ) | [inline] |
Definition at line 610 of file qpainter.h.
{
drawPolyline(polyline.constData(), polyline.size());
}
| void drawPolyline | ( | const QPoint * | points, |
| int | pointCount | ||
| ) |
| void drawPolyline | ( | const QPolygon & | polygon | ) | [inline] |
Definition at line 615 of file qpainter.h.
{
drawPolyline(polyline.constData(), polyline.size());
}
| void drawPolygon | ( | const QPointF * | points, |
| int | pointCount, | ||
| Qt::FillRule | fillRule =
Qt::OddEvenFill |
||
| ) |
| void drawPolygon | ( | const QPolygonF & | polygon, |
| Qt::FillRule | fillRule =
Qt::OddEvenFill |
||
| ) | [inline] |
Definition at line 620 of file qpainter.h.
{
drawPolygon(polygon.constData(), polygon.size(), fillRule);
}
| void drawPolygon | ( | const QPoint * | points, |
| int | pointCount, | ||
| Qt::FillRule | fillRule =
Qt::OddEvenFill |
||
| ) |
| void drawPolygon | ( | const QPolygon & | polygon, |
| Qt::FillRule | fillRule =
Qt::OddEvenFill |
||
| ) | [inline] |
Definition at line 625 of file qpainter.h.
{
drawPolygon(polygon.constData(), polygon.size(), fillRule);
}
| void drawConvexPolygon | ( | const QPointF * | points, |
| int | pointCount | ||
| ) |
| void drawConvexPolygon | ( | const QPolygonF & | polygon | ) | [inline] |
Definition at line 630 of file qpainter.h.
{
drawConvexPolygon(poly.constData(), poly.size());
}
| void drawConvexPolygon | ( | const QPoint * | points, |
| int | pointCount | ||
| ) |
| void drawConvexPolygon | ( | const QPolygon & | polygon | ) | [inline] |
Definition at line 635 of file qpainter.h.
{
drawConvexPolygon(poly.constData(), poly.size());
}
| void drawArc | ( | const QRectF & | rect, |
| int | a, | ||
| int | alen | ||
| ) |
| void drawArc | ( | const QRect & | r, |
| int | a, | ||
| int | alen | ||
| ) | [inline] |
Definition at line 729 of file qpainter.h.
| void drawArc | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | a, | ||
| int | alen | ||
| ) | [inline] |
Definition at line 734 of file qpainter.h.
| void drawPie | ( | const QRectF & | rect, |
| int | a, | ||
| int | alen | ||
| ) |
| void drawPie | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | a, | ||
| int | alen | ||
| ) | [inline] |
Definition at line 744 of file qpainter.h.
| void drawPie | ( | const QRect & | rect, |
| int | a, | ||
| int | alen | ||
| ) | [inline] |
Definition at line 739 of file qpainter.h.
| void drawChord | ( | const QRectF & | rect, |
| int | a, | ||
| int | alen | ||
| ) |
| void drawChord | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | a, | ||
| int | alen | ||
| ) | [inline] |
Definition at line 754 of file qpainter.h.
| void drawChord | ( | const QRect & | rect, |
| int | a, | ||
| int | alen | ||
| ) | [inline] |
Definition at line 749 of file qpainter.h.
| void drawRoundedRect | ( | const QRectF & | rect, |
| qreal | xRadius, | ||
| qreal | yRadius, | ||
| Qt::SizeMode | mode =
Qt::AbsoluteSize |
||
| ) |
| void drawRoundedRect | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| qreal | xRadius, | ||
| qreal | yRadius, | ||
| Qt::SizeMode | mode =
Qt::AbsoluteSize |
||
| ) | [inline] |
Definition at line 702 of file qpainter.h.
{
drawRoundedRect(QRectF(x, y, w, h), xRadius, yRadius, mode);
}
| void drawRoundedRect | ( | const QRect & | rect, |
| qreal | xRadius, | ||
| qreal | yRadius, | ||
| Qt::SizeMode | mode =
Qt::AbsoluteSize |
||
| ) | [inline] |
Definition at line 708 of file qpainter.h.
{
drawRoundedRect(QRectF(rect), xRadius, yRadius, mode);
}
| void drawRoundRect | ( | const QRectF & | r, |
| int | xround = 25, |
||
| int | yround = 25 |
||
| ) |
| void drawRoundRect | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | xRnd = 25, |
||
| int | yRnd = 25 |
||
| ) | [inline] |
Definition at line 692 of file qpainter.h.
{
drawRoundRect(QRectF(x, y, w, h), xRnd, yRnd);
}
| void drawRoundRect | ( | const QRect & | r, |
| int | xround = 25, |
||
| int | yround = 25 |
||
| ) | [inline] |
Definition at line 697 of file qpainter.h.
{
drawRoundRect(QRectF(rect), xRnd, yRnd);
}
| void drawTiledPixmap | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QPixmap & | pm, | ||
| int | sx = 0, |
||
| int | sy = 0 |
||
| ) | [inline] |
Definition at line 830 of file qpainter.h.
{
drawTiledPixmap(QRectF(x, y, w, h), pm, QPointF(sx, sy));
}
| void drawTiledPixmap | ( | const QRect & | rect, |
| const QPixmap & | pm, | ||
| const QPoint & | offset = QPoint() |
||
| ) | [inline] |
Definition at line 825 of file qpainter.h.
{
drawTiledPixmap(QRectF(rect), pm, QPointF(offset));
}
| void drawPicture | ( | int | x, |
| int | y, | ||
| const QPicture & | picture | ||
| ) | [inline] |
Definition at line 986 of file qpainter.h.
{
drawPicture(QPoint(x, y), p);
}
Definition at line 991 of file qpainter.h.
{
drawPicture(QPointF(pt), p);
}
| void drawPixmap | ( | const QRect & | targetRect, |
| const QPixmap & | pixmap, | ||
| const QRect & | sourceRect | ||
| ) | [inline] |
Definition at line 835 of file qpainter.h.
{
drawPixmap(QRectF(targetRect), pixmap, QRectF(sourceRect));
}
| void drawPixmap | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QPixmap & | pm, | ||
| int | sx, | ||
| int | sy, | ||
| int | sw, | ||
| int | sh | ||
| ) | [inline] |
Definition at line 860 of file qpainter.h.
{
drawPixmap(QRectF(x, y, w, h), pm, QRectF(sx, sy, sw, sh));
}
| void drawPixmap | ( | int | x, |
| int | y, | ||
| const QPixmap & | pm, | ||
| int | sx, | ||
| int | sy, | ||
| int | sw, | ||
| int | sh | ||
| ) | [inline] |
Definition at line 866 of file qpainter.h.
{
drawPixmap(QRectF(x, y, -1, -1), pm, QRectF(sx, sy, sw, sh));
}
Definition at line 872 of file qpainter.h.
{
drawPixmap(QRectF(p.x(), p.y(), -1, -1), pm, sr);
}
Definition at line 877 of file qpainter.h.
{
drawPixmap(QRectF(p.x(), p.y(), -1, -1), pm, sr);
}
Definition at line 840 of file qpainter.h.
{
drawPixmap(QPointF(p), pm);
}
| void drawPixmap | ( | int | x, |
| int | y, | ||
| const QPixmap & | pm | ||
| ) | [inline] |
Definition at line 850 of file qpainter.h.
{
drawPixmap(QPointF(x, y), pm);
}
Definition at line 845 of file qpainter.h.
{
drawPixmap(QRectF(r), pm, QRectF());
}
| void drawPixmap | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QPixmap & | pm | ||
| ) | [inline] |
Definition at line 855 of file qpainter.h.
{
drawPixmap(QRectF(x, y, w, h), pm, QRectF());
}
| void drawPixmapFragments | ( | const PixmapFragment * | fragments, |
| int | fragmentCount, | ||
| const QPixmap & | pixmap, | ||
| PixmapFragmentHints | hints = 0 |
||
| ) |
| void drawImage | ( | const QRect & | targetRect, |
| const QImage & | image, | ||
| const QRect & | sourceRect, | ||
| Qt::ImageConversionFlags | flags =
Qt::AutoColor |
||
| ) | [inline] |
Definition at line 887 of file qpainter.h.
| void drawImage | ( | const QPointF & | p, |
| const QImage & | image, | ||
| const QRectF & | sr, | ||
| Qt::ImageConversionFlags | flags =
Qt::AutoColor |
||
| ) | [inline] |
Definition at line 893 of file qpainter.h.
| void drawImage | ( | const QPoint & | p, |
| const QImage & | image, | ||
| const QRect & | sr, | ||
| Qt::ImageConversionFlags | flags =
Qt::AutoColor |
||
| ) | [inline] |
Definition at line 899 of file qpainter.h.
Definition at line 906 of file qpainter.h.
Definition at line 911 of file qpainter.h.
Definition at line 916 of file qpainter.h.
| void drawImage | ( | int | x, |
| int | y, | ||
| const QImage & | image, | ||
| int | sx = 0, |
||
| int | sy = 0, |
||
| int | sw = -1, |
||
| int | sh = -1, |
||
| Qt::ImageConversionFlags | flags =
Qt::AutoColor |
||
| ) | [inline] |
Definition at line 921 of file qpainter.h.
| void setLayoutDirection | ( | Qt::LayoutDirection | direction | ) |
| Qt::LayoutDirection layoutDirection | ( | ) | const |
| void drawStaticText | ( | const QPointF & | topLeftPosition, |
| const QStaticText & | staticText | ||
| ) |
| void drawStaticText | ( | const QPoint & | topLeftPosition, |
| const QStaticText & | staticText | ||
| ) | [inline] |
Definition at line 930 of file qpainter.h.
{
drawStaticText(QPointF(p), staticText);
}
| void drawStaticText | ( | int | left, |
| int | top, | ||
| const QStaticText & | staticText | ||
| ) | [inline] |
Definition at line 935 of file qpainter.h.
{
drawStaticText(QPointF(x, y), staticText);
}
| void drawText | ( | int | x, |
| int | y, | ||
| const QString & | s | ||
| ) | [inline] |
Definition at line 955 of file qpainter.h.
| void drawText | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | flags, | ||
| const QString & | text, | ||
| QRect * | br = 0 |
||
| ) | [inline] |
Definition at line 950 of file qpainter.h.
| void drawText | ( | const QRectF & | r, |
| const QString & | text, | ||
| const QTextOption & | o = QTextOption() |
||
| ) |
Definition at line 960 of file qpainter.h.
{
return boundingRect(QRect(x, y, w, h), flags, text);
}
| QRectF boundingRect | ( | const QRectF & | rect, |
| const QString & | text, | ||
| const QTextOption & | o = QTextOption() |
||
| ) |
| void drawTextItem | ( | int | x, |
| int | y, | ||
| const QTextItem & | ti | ||
| ) | [inline] |
Definition at line 882 of file qpainter.h.
{
drawTextItem(QPointF(x, y), ti);
}
Definition at line 940 of file qpainter.h.
{
drawTextItem(QPointF(p), ti);
}
| void fillRect | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QBrush & | b | ||
| ) | [inline] |
Definition at line 774 of file qpainter.h.
| void fillRect | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QColor & | color | ||
| ) | [inline] |
Definition at line 779 of file qpainter.h.
| void fillRect | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Qt::GlobalColor | c | ||
| ) | [inline] |
Definition at line 784 of file qpainter.h.
| void fillRect | ( | const QRect & | r, |
| Qt::GlobalColor | c | ||
| ) | [inline] |
| void fillRect | ( | const QRectF & | r, |
| Qt::GlobalColor | c | ||
| ) | [inline] |
| void fillRect | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Qt::BrushStyle | style | ||
| ) | [inline] |
Definition at line 799 of file qpainter.h.
| void fillRect | ( | const QRect & | r, |
| Qt::BrushStyle | style | ||
| ) | [inline] |
Definition at line 804 of file qpainter.h.
| void fillRect | ( | const QRectF & | r, |
| Qt::BrushStyle | style | ||
| ) | [inline] |
Definition at line 809 of file qpainter.h.
| void eraseRect | ( | const QRectF & | ) |
| void eraseRect | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) | [inline] |
Definition at line 769 of file qpainter.h.
| void eraseRect | ( | const QRect & | rect | ) | [inline] |
| void setRenderHint | ( | RenderHint | hint, |
| bool | on = true |
||
| ) |
| void setRenderHints | ( | RenderHints | hints, |
| bool | on = true |
||
| ) |
| RenderHints renderHints | ( | ) | const |
| bool testRenderHint | ( | RenderHint | hint | ) | const [inline] |
Definition at line 448 of file qpainter.h.
{ return renderHints() & hint; }
| QPaintEngine* paintEngine | ( | ) | const |
| static void setRedirected | ( | const QPaintDevice * | device, |
| QPaintDevice * | replacement, | ||
| const QPoint & | offset = QPoint() |
||
| ) | [static] |
| static QPaintDevice* redirected | ( | const QPaintDevice * | device, |
| QPoint * | offset = 0 |
||
| ) | [static] |
| static void restoreRedirected | ( | const QPaintDevice * | device | ) | [static] |
| void beginNativePainting | ( | ) |
| void endNativePainting | ( | ) |
friend class Q3Painter
[friend] |
Definition at line 535 of file qpainter.h.
friend class QFontEngine
[friend] |
Definition at line 539 of file qpainter.h.
friend class QFontEngineBox
[friend] |
Definition at line 540 of file qpainter.h.
friend class QFontEngineFT
[friend] |
Definition at line 541 of file qpainter.h.
friend class QFontEngineMac
[friend] |
Definition at line 542 of file qpainter.h.
friend class QFontEngineWin
[friend] |
Definition at line 543 of file qpainter.h.
friend class QFontEngineXLFD
[friend] |
Definition at line 544 of file qpainter.h.
friend class QWSManager
[friend] |
Definition at line 545 of file qpainter.h.
friend class QPaintEngine
[friend] |
Definition at line 546 of file qpainter.h.
friend class QPaintEngineExPrivate
[friend] |
Definition at line 547 of file qpainter.h.
friend class QOpenGLPaintEngine
[friend] |
Definition at line 548 of file qpainter.h.
friend class QX11PaintEngine
[friend] |
Definition at line 549 of file qpainter.h.
friend class QX11PaintEnginePrivate
[friend] |
Definition at line 550 of file qpainter.h.
friend class QWin32PaintEngine
[friend] |
Definition at line 551 of file qpainter.h.
friend class QWin32PaintEnginePrivate
[friend] |
Definition at line 552 of file qpainter.h.
friend class QRasterPaintEngine
[friend] |
Definition at line 553 of file qpainter.h.
friend class QAlphaPaintEngine
[friend] |
Definition at line 554 of file qpainter.h.
friend class QPreviewPaintEngine
[friend] |
Definition at line 555 of file qpainter.h.