table of contents
conflicting packages
QwtPainter(3) | Qwt User's Guide | QwtPainter(3) |
NAME¶
QwtPainter - A collection of QPainter workarounds.SYNOPSIS¶
#include <qwt_painter.h>Static Public Member Functions¶
static void setPolylineSplitting (bool)
Detailed Description¶
A collection of QPainter workarounds.Member Function Documentation¶
void QwtPainter::drawColorBar (QPainter *painter, const QwtColorMap &colorMap, const QwtInterval &interval, const QwtScaleMap &scaleMap, Qt::Orientationorientation, const QRectF &rect) [static] Draw a color bar into a rectangle¶
Parameters:painter Painter
colorMap Color map
interval Value range
scaleMap Scale map
orientation Orientation
rect Traget rectangle
void QwtPainter::drawEllipse (QPainter *painter, const QRectF &rect) [static]¶
Wrapper for QPainter::drawEllipse()void QwtPainter::drawFocusRect (QPainter *painter, QWidget *widget) [static]¶
Draw a focus rectangle on a widget using its style.void QwtPainter::drawFocusRect (QPainter *painter, QWidget *widget, const QRect &rect) [static]¶
Draw a focus rectangle on a widget using its style.void QwtPainter::drawImage (QPainter *painter, const QRectF &rect, const QImage &image) [static]¶
Wrapper for QPainter::drawImage()void QwtPainter::drawLine (QPainter *painter, doublex1, doubley1, doublex2, doubley2) [inline, static]¶
Wrapper for QPainter::drawLine()void QwtPainter::drawLine (QPainter *painter, const QPointF &p1, const QPointF &p2) [static]¶
Wrapper for QPainter::drawLine()void QwtPainter::drawLine (QPainter *painter, const QLineF &line) [inline, static]¶
Wrapper for QPainter::drawLine()void QwtPainter::drawPath (QPainter *painter, const QPainterPath &path) [static]¶
Wrapper for QPainter::drawPath()void QwtPainter::drawPie (QPainter *painter, const QRectF &r, inta, intalen) [static]¶
Wrapper for QPainter::drawPie()void QwtPainter::drawPixmap (QPainter *painter, const QRectF &rect, const QPixmap &pixmap) [static]¶
Wrapper for QPainter::drawPixmap()void QwtPainter::drawPoint (QPainter *painter, doublex, doubley) [inline, static]¶
Wrapper for QPainter::drawPoint()void QwtPainter::drawPoint (QPainter *painter, const QPointF &pos) [static]¶
Wrapper for QPainter::drawPoint()void QwtPainter::drawPolygon (QPainter *painter, const QPolygonF &pa) [static]¶
Wrapper for QPainter::drawPolygon()void QwtPainter::drawPolyline (QPainter *painter, const QPointF *points, intpointCount) [static]¶
Wrapper for QPainter::drawPolyline()void QwtPainter::drawPolyline (QPainter *painter, const QPolygonF &pa) [static]¶
Wrapper for QPainter::drawPolyline()void QwtPainter::drawRect (QPainter *painter, doublex, doubley, doublew, doubleh) [static]¶
Wrapper for QPainter::drawRect()void QwtPainter::drawRect (QPainter *painter, const QRectF &rect) [static]¶
Wrapper for QPainter::drawRect()void QwtPainter::drawRoundedFrame (QPainter *painter, const QRectF &rect, doublexRadius, doubleyRadius, const QPalette &palette, intlineWidth, intframeStyle) [static] Draw a frame with rounded borders¶
Parameters:painter Painter
rect Frame rectangle
xRadius x-radius of the ellipses defining the corners
yRadius y-radius of the ellipses defining the corners
palette QPalette::WindowText is used for plain borders QPalette::Dark and
QPalette::Light for raised or sunken borders
lineWidth Line width
frameStyle bitwise OR´ed value of QFrame::Shape and
QFrame::Shadow
void QwtPainter::drawSimpleRichText (QPainter *painter, const QRectF &rect, intflags, const QTextDocument &text) [static] Draw a text document into a rectangle¶
Parameters:painter Painter
rect Traget rectangle
flags Alignments/Text flags, see QPainter::drawText()
text Text document
void QwtPainter::drawText (QPainter *painter, const QRectF &rect, intflags, const QString &text) [static]¶
Wrapper for QPainter::drawText()void QwtPainter::drawText (QPainter *painter, doublex, doubley, const QString &text) [static]¶
Wrapper for QPainter::drawText()void QwtPainter::drawText (QPainter *painter, const QPointF &pos, const QString &text) [static]¶
Wrapper for QPainter::drawText()void QwtPainter::drawText (QPainter *painter, doublex, doubley, doublew, doubleh, intflags, const QString &text) [static]¶
Wrapper for QPainter::drawText()void QwtPainter::fillRect (QPainter *painter, const QRectF &rect, const QBrush &brush) [static]¶
Wrapper for QPainter::fillRect()bool QwtPainter::isAligning (QPainter *painter) [static] Check if the painter is using a paint engine, that aligns coordinates to integers. Today these are all paint engines beside QPaintEngine::Pdf and QPaintEngine::SVG.¶
Parameters:painter Painter
Returns:
true, when the paint engine is aligning
See also:
setRoundingAlignment()
bool QwtPainter::polylineSplitting () [inline, static] Returns whether line splitting for the raster paint engine is enabled.¶
See also:setPolylineSplitting()
bool QwtPainter::roundingAlignment () [inline, static] Returns whether coordinates should be rounded, before they are painted to a paint engine that floors to integer values. For other paint engines this ( Pdf, SVG ), this flag has no effect.¶
See also:setRoundingAlignment(),
isAligning()
bool QwtPainter::roundingAlignment (QPainter *painter) [inline, static] Returns:¶
roundingAlignment() &&
isAligning(painter);
Parameters:
painter Painter
void QwtPainter::setPolylineSplitting (boolenable) [static]¶
En/Disable line splitting for the raster paint engine. The raster paint engine paints polylines of many points much faster when they are splitted in smaller chunks. See also:polylineSplitting()
void QwtPainter::setRoundingAlignment (boolenable) [static] Enable whether coordinates should be rounded, before they are painted to a paint engine that floors to integer values. For other paint engines this ( Pdf, SVG ), this flag has no effect. QwtPainter stores this flag only, the rounding itsself is done in the painting code ( f.e the plot items ).¶
The default setting is true. See also:roundingAlignment(),
isAligning()
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.Fri Apr 15 2011 | Version 6.0.0 |