QPainter - Interface to the Qt QPainter class
use QPainter;
Requires QColor, QBrush, QFont, QFontInfo, QFontMetrics, QPaintDevice, QPen, QPicture, QPixmap, QPoint, QPointArray, QRect, QRegion, QWMatrix
new, backgroundColor, backgroundMode, begin, boundingRect, brushOrigin, clipRegion, device, drawArc, drawChord, drawEllipse, drawLine, drawLineSegments, drawPie, drawPixmap, drawPoint, drawPolygon, drawPolyline, drawQuadBezier, drawRect, drawRoundRect, drawText, drawWinFocusRect, end, eraseRect, fillRect, font, fontInfo, fontMetrics, hasClipping, hasViewXForm, hasWorldXForm, isActive, lineTo, moveTo, pen, rasterOp, resetXForm, restore, rotate, save, scale, setBackgroundColor, setBackgroundMode, setBrush, setBrushOrigin, setClipping, setClipRect, setClipRegion, setFont, setPen, setRasterOp, setViewXForm, setViewport, setWindow, setWorldMatrix, setWorldXForm, shear, translate, viewport, window, worldMatrix, xForm, xFormDev
All functions listed have every prototype version supported, mostly. Any internal arguments are unavailable to PerlQt programmers.
The following variables are exported into the user's namespace on behalf of QPainter::drawText() from qwindefs.h
QPainter::drawText()
%Align $SingleLine $DontClip $ExpandTabs $ShowPrefix $WordBreak $GrayText $DontPrint
The %BGMode and %RasterOp hashes are also exported. %BGMode contains the values in the BGMode enum in qpainter.h without the trailing Mode, and %RasterOp contains the values in the RasterOp enum in qwindefs.h without the trailing ROP.
%BGMode
%RasterOp
qpainter(3qt), QColor(3), QBrush(3), QFont(3), QPen(3)
Ashley Winters <jql@accessone.com>
To install Qt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Qt
CPAN shell
perl -MCPAN -e shell install Qt
For more information on module installation, please visit the detailed CPAN module installation guide.