GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
QwtPainter(3) Qwt User's Guide QwtPainter(3)

QwtPainter -

#include <qwt_painter.h>


static bool deviceClipping ()
 
static const QRect & deviceClipRect ()
 
static void drawColorBar (QPainter *painter, const QwtColorMap &, const QwtDoubleInterval &, const QwtScaleMap &, Qt::Orientation, const QRect &)
 
static void drawEllipse (QPainter *, const QRect &)
 
static void drawFocusRect (QPainter *, QWidget *)
 
static void drawFocusRect (QPainter *, QWidget *, const QRect &)
 
static void drawLine (QPainter *, int x1, int y1, int x2, int y2)
 
static void drawLine (QPainter *, const QPoint &p1, const QPoint &p2)
 
static void drawPie (QPainter *, const QRect &r, int a, int alen)
 
static void drawPoint (QPainter *, int x, int y)
 
static void drawPolygon (QPainter *, const QwtPolygon &pa)
 
static void drawPolyline (QPainter *, const QwtPolygon &pa)
 
static void drawRect (QPainter *, int x, int y, int w, int h)
 
static void drawRect (QPainter *, const QRect &rect)
 
static void drawRoundFrame (QPainter *, const QRect &, int width, const QPalette &, bool sunken)
 
static void drawSimpleRichText (QPainter *, const QRect &, int flags, QTextDocument &)
 
static void drawText (QPainter *, int x, int y, const QString &)
 
static void drawText (QPainter *, const QPoint &, const QString &)
 
static void drawText (QPainter *, int x, int y, int w, int h, int flags, const QString &)
 
static void drawText (QPainter *, const QRect &, int flags, const QString &)
 
static void fillRect (QPainter *, const QRect &, const QBrush &)
 
static const QwtMetricsMap & metricsMap ()
 
static void resetMetricsMap ()
 
static QPen scaledPen (const QPen &)
 
static void setClipRect (QPainter *, const QRect &)
 
static void setDeviceClipping (bool)
 
static void setMetricsMap (const QPaintDevice *layout, const QPaintDevice *device)
 
static void setMetricsMap (const QwtMetricsMap &)
 

A collection of QPainter workarounds.
1) Clipping to coordinate system limits (Qt3 only)
On X11 pixel coordinates are stored in shorts. Qt produces overruns when mapping QCOORDS to shorts.
2) Scaling to device metrics
QPainter scales fonts, line and fill patterns to the metrics of the paint device. Other values like the geometries of rects, points remain device independend. To enable a device independent widget implementation, QwtPainter adds scaling of these geometries. (Unfortunately QPainter::scale scales both types of paintings, so the objects of the first type would be scaled twice).

Returns whether device clipping is enabled. On X11 the default is enabled, otherwise it is disabled.
See also:
QwtPainter::setDeviceClipping()

Returns rect for device clipping
See also:
QwtPainter::setDeviceClipping()

Wrapper for QPainter::drawEllipse()

Wrapper for QPainter::drawLine()

Wrapper for QPainter::drawPie()

Wrapper for QPainter::drawPoint()

Wrapper for QPainter::drawPolygon()

Wrapper for QPainter::drawPolyline()

Wrapper for QPainter::drawRect()

Wrapper for QPainter::drawRect()

Wrapper for QSimpleRichText::draw()

Wrapper for QPainter::drawText()

Wrapper for QPainter::drawText()

Wrapper for QPainter::drawText()

Wrapper for QPainter::drawText()

Wrapper for QPainter::fillRect()

Returns:
Metrics map

Reset the metrics map to the ratio 1:1
See also:
QwtPainter::setMetricsMap(), QwtPainter::resetMetricsMap()

Scale a pen according to the layout metrics. The width of non cosmetic pens is scaled from screen to layout metrics, so that they look similar on paint devices with different resolutions.
Parameters:
pen Unscaled pen
Returns:
Scaled pen

Wrapper for QPainter::setClipRect()

En/Disable device clipping. On X11 the default for device clipping is enabled, otherwise it is disabled.
See also:
QwtPainter::deviceClipping()

Scale all QwtPainter drawing operations using the ratio QwtPaintMetrics(from).logicalDpiX() / QwtPaintMetrics(to).logicalDpiX() and QwtPaintMetrics(from).logicalDpiY() / QwtPaintMetrics(to).logicalDpiY()
See also:
QwtPainter::resetScaleMetrics(), QwtPainter::scaleMetricsX(), QwtPainter::scaleMetricsY()

Change the metrics map
See also:
QwtPainter::resetMetricsMap(), QwtPainter::metricsMap()

Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 Version 5.2.3

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.