42 static void setPolylineSplitting(
bool );
43 static bool polylineSplitting();
45 static void setRoundingAlignment(
bool );
46 static bool roundingAlignment();
47 static bool roundingAlignment(QPainter *);
49 static void drawText( QPainter *,
double x,
double y,
const QString & );
50 static void drawText( QPainter *,
const QPointF &,
const QString & );
51 static void drawText( QPainter *,
double x,
double y,
double w,
double h,
52 int flags,
const QString & );
53 static void drawText( QPainter *,
const QRectF &,
54 int flags,
const QString & );
56 #ifndef QT_NO_RICHTEXT 57 static void drawSimpleRichText( QPainter *,
const QRectF &,
58 int flags,
const QTextDocument & );
61 static void drawRect( QPainter *,
double x,
double y,
double w,
double h );
62 static void drawRect( QPainter *,
const QRectF &rect );
63 static void fillRect( QPainter *,
const QRectF &,
const QBrush & );
65 static void drawEllipse( QPainter *,
const QRectF & );
66 static void drawPie( QPainter *,
const QRectF & r,
int a,
int alen );
68 static void drawLine( QPainter *,
double x1,
double y1,
double x2,
double y2 );
69 static void drawLine( QPainter *,
const QPointF &p1,
const QPointF &p2 );
70 static void drawLine( QPainter *,
const QLineF & );
72 static void drawPolygon( QPainter *,
const QPolygonF & );
73 static void drawPolyline( QPainter *,
const QPolygonF & );
74 static void drawPolyline( QPainter *,
const QPointF *,
int pointCount );
76 static void drawPolygon( QPainter *,
const QPolygon & );
77 static void drawPolyline( QPainter *,
const QPolygon & );
78 static void drawPolyline( QPainter *,
const QPoint *,
int pointCount );
80 static void drawPoint( QPainter *,
const QPoint & );
81 static void drawPoints( QPainter *,
const QPolygon & );
82 static void drawPoints( QPainter *,
const QPoint *,
int pointCount );
84 static void drawPoint( QPainter *,
double x,
double y );
85 static void drawPoint( QPainter *,
const QPointF & );
86 static void drawPoints( QPainter *,
const QPolygonF & );
87 static void drawPoints( QPainter *,
const QPointF *,
int pointCount );
89 static void drawPath( QPainter *,
const QPainterPath & );
90 static void drawImage( QPainter *,
const QRectF &,
const QImage & );
91 static void drawPixmap( QPainter *,
const QRectF &,
const QPixmap & );
93 static void drawRoundFrame( QPainter *,
94 const QRectF &,
const QPalette &,
int lineWidth,
int frameStyle );
96 static void drawRoundedFrame( QPainter *,
97 const QRectF &,
double xRadius,
double yRadius,
98 const QPalette &,
int lineWidth,
int frameStyle );
100 static void drawFrame( QPainter *,
const QRectF &rect,
101 const QPalette &palette, QPalette::ColorRole foregroundRole,
102 int lineWidth,
int midLineWidth,
int frameStyle );
104 static void drawFocusRect( QPainter *,
const QWidget * );
105 static void drawFocusRect( QPainter *,
const QWidget *,
const QRect & );
107 static void drawColorBar( QPainter *painter,
109 const QwtScaleMap &, Qt::Orientation,
const QRectF & );
111 static bool isAligning( QPainter *painter );
112 static bool isX11GraphicsSystem();
114 static void fillPixmap(
const QWidget *,
115 QPixmap &,
const QPoint &offset = QPoint() );
117 static void drawBackgound( QPainter *painter,
118 const QRectF &rect,
const QWidget *widget );
120 static QPixmap backingStore( QWidget *,
const QSize & );
121 static qreal devicePixelRatio(
const QPaintDevice * );
137 drawPoints( painter, polygon.data(), polygon.size() );
143 drawPoints( painter, polygon.data(), polygon.size() );
148 double x1,
double y1,
double x2,
double y2 )
165 return d_polylineSplitting;
178 return d_roundingAlignment;
187 return d_roundingAlignment && isAligning(painter);
A collection of QPainter workarounds.
static void drawLine(QPainter *, double x1, double y1, double x2, double y2)
Wrapper for QPainter::drawLine()
A class representing an interval.
static void drawPoints(QPainter *, const QPolygon &)
Wrapper for QPainter::drawPoints()
static bool polylineSplitting()
TFSIMD_FORCE_INLINE const tfScalar & y() const
QwtColorMap is used to map values into colors.
TFSIMD_FORCE_INLINE const tfScalar & x() const
static bool d_roundingAlignment
TFSIMD_FORCE_INLINE const tfScalar & w() const
static void drawPoint(QPainter *, const QPoint &)
Wrapper for QPainter::drawPoint()
static bool roundingAlignment()
static bool d_polylineSplitting