39 static void setPolylineSplitting(
bool );
40 static bool polylineSplitting();
42 static void setRoundingAlignment(
bool );
43 static bool roundingAlignment();
44 static bool roundingAlignment(
const QPainter* );
46 static void drawText( QPainter*, qreal x, qreal y,
const QString& );
47 static void drawText( QPainter*,
const QPointF&,
const QString& );
48 static void drawText( QPainter*, qreal x, qreal y, qreal w, qreal h,
49 int flags,
const QString& );
50 static void drawText( QPainter*,
const QRectF&,
51 int flags,
const QString& );
54 static void drawSimpleRichText( QPainter*,
const QRectF&,
55 int flags,
const QTextDocument& );
58 static void drawRect( QPainter*, qreal x, qreal y, qreal w, qreal h );
59 static void drawRect( QPainter*,
const QRectF& rect );
60 static void fillRect( QPainter*,
const QRectF&,
const QBrush& );
62 static void drawEllipse( QPainter*,
const QRectF& );
63 static void drawPie( QPainter*,
const QRectF& r,
int a,
int alen );
65 static void drawLine( QPainter*, qreal x1, qreal y1, qreal x2, qreal y2 );
66 static void drawLine( QPainter*,
const QPointF& p1,
const QPointF& p2 );
67 static void drawLine( QPainter*,
const QLineF& );
69 static void drawPolygon( QPainter*,
const QPolygonF& );
70 static void drawPolyline( QPainter*,
const QPolygonF& );
71 static void drawPolyline( QPainter*,
const QPointF*,
int pointCount );
73 static void drawPolygon( QPainter*,
const QPolygon& );
74 static void drawPolyline( QPainter*,
const QPolygon& );
75 static void drawPolyline( QPainter*,
const QPoint*,
int pointCount );
77 static void drawPoint( QPainter*,
const QPoint& );
78 static void drawPoints( QPainter*,
const QPolygon& );
79 static void drawPoints( QPainter*,
const QPoint*,
int pointCount );
81 static void drawPoint( QPainter*, qreal x, qreal y );
82 static void drawPoint( QPainter*,
const QPointF& );
83 static void drawPoints( QPainter*,
const QPolygonF& );
84 static void drawPoints( QPainter*,
const QPointF*,
int pointCount );
86 static void drawPath( QPainter*,
const QPainterPath& );
87 static void drawImage( QPainter*,
const QRectF&,
const QImage& );
88 static void drawPixmap( QPainter*,
const QRectF&,
const QPixmap& );
90 static void drawRoundFrame( QPainter*,
91 const QRectF&,
const QPalette&,
int lineWidth,
int frameStyle );
93 static void drawRoundedFrame( QPainter*,
94 const QRectF&, qreal xRadius, qreal yRadius,
95 const QPalette&,
int lineWidth,
int frameStyle );
97 static void drawFrame( QPainter*,
const QRectF& rect,
98 const QPalette& palette, QPalette::ColorRole foregroundRole,
99 int lineWidth,
int midLineWidth,
int frameStyle );
101 static void drawFocusRect( QPainter*,
const QWidget* );
102 static void drawFocusRect( QPainter*,
const QWidget*,
const QRect& );
104 static void drawColorBar( QPainter*,
106 const QwtScaleMap&, Qt::Orientation,
const QRectF& );
108 static bool isAligning(
const QPainter*);
109 static bool isX11GraphicsSystem();
111 static void fillPixmap(
const QWidget*,
112 QPixmap&,
const QPoint& offset = QPoint() );
114 static void drawBackgound( QPainter*,
115 const QRectF&,
const QWidget* );
117 static QPixmap backingStore( QWidget*,
const QSize& );
118 static qreal devicePixelRatio(
const QPaintDevice* );
120 static qreal effectivePenWidth(
const QPen& );
122 static int horizontalAdvance(
const QFontMetrics&,
const QString& );
123 static qreal horizontalAdvance(
const QFontMetricsF&,
const QString& );
125 static int horizontalAdvance(
const QFontMetrics&, QChar );
126 static qreal horizontalAdvance(
const QFontMetricsF&, QChar );
128 static QFont scaledFont(
const QFont&,
const QPaintDevice* = NULL );
131 static bool m_polylineSplitting;
132 static bool m_roundingAlignment;
static void drawLine(QPainter *, qreal x1, qreal y1, qreal x2, qreal y2)
Wrapper for QPainter::drawLine()