diff options
Diffstat (limited to 'doc/html/tqpainter.html')
-rw-r--r-- | doc/html/tqpainter.html | 214 |
1 files changed, 107 insertions, 107 deletions
diff --git a/doc/html/tqpainter.html b/doc/html/tqpainter.html index d026fedfd..83ba7ef16 100644 --- a/doc/html/tqpainter.html +++ b/doc/html/tqpainter.html @@ -261,8 +261,8 @@ since we want drawing to be as fast as possible. <p> There are functions to draw pixmaps/images, namely <a href="#drawPixmap">drawPixmap</a>(), <a href="#drawImage">drawImage</a>() and <a href="#drawTiledPixmap">drawTiledPixmap</a>(). drawPixmap() and drawImage() produce the same result, except that drawPixmap() is faster -on-screen and drawImage() faster and sometimes better on <a href="ntqprinter.html">TQPrinter</a> -and <a href="ntqpicture.html">TQPicture</a>. +on-screen and drawImage() faster and sometimes better on <a href="tqprinter.html">TQPrinter</a> +and <a href="tqpicture.html">TQPicture</a>. <p> Text drawing is done using <a href="#drawText">drawText</a>(), and when you need fine-grained positioning, <a href="#boundingRect">boundingRect</a>() tells you where a given drawText() command would draw. @@ -316,7 +316,7 @@ coordinate limitations in the underlying window system. Some platforms may behave incorrectly with coordinates as small as +/-4000. -<p> <p>See also <a href="tqpaintdevice.html">TQPaintDevice</a>, <a href="tqwidget.html">TQWidget</a>, <a href="ntqpixmap.html">TQPixmap</a>, <a href="ntqprinter.html">TQPrinter</a>, <a href="ntqpicture.html">TQPicture</a>, <a href="simple-application.html">Application Walkthrough</a>, <a href="coordsys.html">Coordinate System Overview</a>, <a href="graphics.html">Graphics Classes</a>, and <a href="images.html">Image Processing Classes</a>. +<p> <p>See also <a href="tqpaintdevice.html">TQPaintDevice</a>, <a href="tqwidget.html">TQWidget</a>, <a href="tqpixmap.html">TQPixmap</a>, <a href="tqprinter.html">TQPrinter</a>, <a href="tqpicture.html">TQPicture</a>, <a href="simple-application.html">Application Walkthrough</a>, <a href="coordsys.html">Coordinate System Overview</a>, <a href="graphics.html">Graphics Classes</a>, and <a href="images.html">Image Processing Classes</a>. <hr><h2>Member Type Documentation</h2> <h3 class=fn><a name="CoordinateMode-enum"></a>TQPainter::CoordinateMode</h3> @@ -410,8 +410,8 @@ painting will not be clipped at the paint device's boundaries, <p> <pre> p->begin( 0 ); // impossible - paint device cannot be 0 - <a href="ntqpixmap.html">TQPixmap</a> pm( 0, 0 ); - p->begin( pm ); // impossible - pm.<a href="ntqpixmap.html#isNull">isNull</a>(); + <a href="tqpixmap.html">TQPixmap</a> pm( 0, 0 ); + p->begin( pm ); // impossible - pm.<a href="tqpixmap.html#isNull">isNull</a>(); p->begin( myWidget ); p2->begin( myWidget ); // impossible - only one painter at a time @@ -448,7 +448,7 @@ font etc. This function does exactly that. <pre> void MyWidget::paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> * ) { - <a href="ntqpixmap.html">TQPixmap</a> pm(size()); + <a href="tqpixmap.html">TQPixmap</a> pm(size()); TQPainter p; p.<a href="#begin">begin</a>(&pm, this); // ... potentially flickering paint operation ... @@ -459,7 +459,7 @@ font etc. This function does exactly that. <p> <p>See also <a href="#end">end</a>(). -<h3 class=fn><a href="ntqrect.html">TQRect</a> <a name="boundingRect"></a>TQPainter::boundingRect ( int x, int y, int w, int h, int flags, const <a href="tqstring.html">TQString</a> &, int len = -1, TQTextParag ** intern = 0 ) +<h3 class=fn><a href="tqrect.html">TQRect</a> <a name="boundingRect"></a>TQPainter::boundingRect ( int x, int y, int w, int h, int flags, const <a href="tqstring.html">TQString</a> &, int len = -1, TQTextParag ** intern = 0 ) </h3> <p> Returns the bounding rectangle of the aligned text that would be @@ -492,7 +492,7 @@ are set, the resulting alignment is undefined. <p> The <em>intern</em> parameter should not be used. <p> <p>See also <a href="ntqt.html#TextFlags-enum">TQt::TextFlags</a>. -<h3 class=fn><a href="ntqrect.html">TQRect</a> <a name="boundingRect-2"></a>TQPainter::boundingRect ( const <a href="ntqrect.html">TQRect</a> & r, int flags, const <a href="tqstring.html">TQString</a> & str, int len = -1, TQTextParag ** internal = 0 ) +<h3 class=fn><a href="tqrect.html">TQRect</a> <a name="boundingRect-2"></a>TQPainter::boundingRect ( const <a href="tqrect.html">TQRect</a> & r, int flags, const <a href="tqstring.html">TQString</a> & str, int len = -1, TQTextParag ** internal = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Returns the bounding rectangle of the aligned text that would be @@ -511,13 +511,13 @@ rectangle required to draw the text, whichever is the larger. <p> <p>See also <a href="#setBrush">TQPainter::setBrush</a>(). <p>Examples: <a href="themes-example.html#x283">themes/metal.cpp</a> and <a href="themes-example.html#x212">themes/wood.cpp</a>. -<h3 class=fn>const <a href="ntqpoint.html">TQPoint</a> & <a name="brushOrigin"></a>TQPainter::brushOrigin () const +<h3 class=fn>const <a href="tqpoint.html">TQPoint</a> & <a name="brushOrigin"></a>TQPainter::brushOrigin () const </h3> <p> Returns the brush origin currently set. <p> <p>See also <a href="#setBrushOrigin">setBrushOrigin</a>(). -<h3 class=fn><a href="ntqregion.html">TQRegion</a> <a name="clipRegion"></a>TQPainter::clipRegion ( <a href="tqpainter.html#CoordinateMode-enum">CoordinateMode</a> m = CoordDevice ) const +<h3 class=fn><a href="tqregion.html">TQRegion</a> <a name="clipRegion"></a>TQPainter::clipRegion ( <a href="tqpainter.html#CoordinateMode-enum">CoordinateMode</a> m = CoordDevice ) const </h3> Returns the currently set clip region. Note that the clip region is given in physical device coordinates and <em>not</em> subject to any @@ -550,7 +550,7 @@ direction. Zero degrees is at the 3 o'clock position. <p> <p>See also <a href="#drawPie">drawPie</a>() and <a href="#drawChord">drawChord</a>(). -<h3 class=fn>void <a name="drawArc-2"></a>TQPainter::drawArc ( const <a href="ntqrect.html">TQRect</a> & r, int a, int alen ) +<h3 class=fn>void <a name="drawArc-2"></a>TQPainter::drawArc ( const <a href="tqrect.html">TQRect</a> & r, int a, int alen ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws the arc that fits inside the rectangle <em>r</em> with start angle @@ -567,13 +567,13 @@ mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position. <p> <p>See also <a href="#drawArc">drawArc</a>() and <a href="#drawPie">drawPie</a>(). -<h3 class=fn>void <a name="drawChord-2"></a>TQPainter::drawChord ( const <a href="ntqrect.html">TQRect</a> & r, int a, int alen ) +<h3 class=fn>void <a name="drawChord-2"></a>TQPainter::drawChord ( const <a href="tqrect.html">TQRect</a> & r, int a, int alen ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws a chord that fits inside the rectangle <em>r</em> with start angle <em>a</em> and arc length <em>alen</em>. -<h3 class=fn>void <a name="drawConvexPolygon"></a>TQPainter::drawConvexPolygon ( const <a href="ntqpointarray.html">TQPointArray</a> & pa, int index = 0, int npoints = -1 ) +<h3 class=fn>void <a name="drawConvexPolygon"></a>TQPainter::drawConvexPolygon ( const <a href="tqpointarray.html">TQPointArray</a> & pa, int index = 0, int npoints = -1 ) </h3> Draws the convex polygon defined by the <em>npoints</em> points in <em>pa</em> starting at <em>pa[index]</em> (<em>index</em> defaults to 0). @@ -585,7 +585,7 @@ values are truncated. This limitation is expected to go away in TQt 4. <p>Example: <a href="coordsys.html#x2271">aclock/aclock.cpp</a>. -<h3 class=fn>void <a name="drawCubicBezier"></a>TQPainter::drawCubicBezier ( const <a href="ntqpointarray.html">TQPointArray</a> & a, int index = 0 ) +<h3 class=fn>void <a name="drawCubicBezier"></a>TQPainter::drawCubicBezier ( const <a href="tqpointarray.html">TQPointArray</a> & a, int index = 0 ) </h3> Draws a cubic Bezier curve defined by the control points in <em>a</em>, starting at <em>a[index]</em> (<em>index</em> defaults to 0). @@ -600,7 +600,7 @@ TQt 4. Draws an ellipse with center at <em>(x + w/2, y + h/2)</em> and size <em>(w, h)</em>. <p>Examples: <a href="drawdemo-example.html#x1068">drawdemo/drawdemo.cpp</a>, <a href="picture-example.html#x112">picture/picture.cpp</a>, and <a href="tictac-example.html#x28">tictac/tictac.cpp</a>. -<h3 class=fn>void <a name="drawEllipse-2"></a>TQPainter::drawEllipse ( const <a href="ntqrect.html">TQRect</a> & r ) +<h3 class=fn>void <a name="drawEllipse-2"></a>TQPainter::drawEllipse ( const <a href="tqrect.html">TQRect</a> & r ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws the ellipse that fits inside rectangle <em>r</em>. @@ -611,18 +611,18 @@ Draws at (<em>x</em>, <em>y</em>) the <em>sw</em> by <em>sh</em> area of pixels needs to be converted to a pixmap. The default value for <em>conversionFlags</em> is 0; see convertFromImage() for information about what other values do. <p> This function may convert <em>image</em> to a pixmap and then draw it, -if <a href="#device">device</a>() is a <a href="ntqpixmap.html">TQPixmap</a> or a <a href="tqwidget.html">TQWidget</a>, or else draw it directly, -if device() is a <a href="ntqprinter.html">TQPrinter</a> or <a href="ntqpicture.html">TQPicture</a>. +if <a href="#device">device</a>() is a <a href="tqpixmap.html">TQPixmap</a> or a <a href="tqwidget.html">TQWidget</a>, or else draw it directly, +if device() is a <a href="tqprinter.html">TQPrinter</a> or <a href="tqpicture.html">TQPicture</a>. <p> Currently alpha masks of the image are ignored when painting on a TQPrinter. -<p> <p>See also <a href="#drawPixmap">drawPixmap</a>() and <a href="ntqpixmap.html#convertFromImage">TQPixmap::convertFromImage</a>(). +<p> <p>See also <a href="#drawPixmap">drawPixmap</a>() and <a href="tqpixmap.html#convertFromImage">TQPixmap::convertFromImage</a>(). <p>Example: <a href="canvas-example.html#x2941">canvas/canvas.cpp</a>. -<h3 class=fn>void <a name="drawImage-2"></a>TQPainter::drawImage ( const <a href="ntqpoint.html">TQPoint</a> &, const <a href="tqimage.html">TQImage</a> &, const <a href="ntqrect.html">TQRect</a> & sr, int conversionFlags = 0 ) +<h3 class=fn>void <a name="drawImage-2"></a>TQPainter::drawImage ( const <a href="tqpoint.html">TQPoint</a> &, const <a href="tqimage.html">TQImage</a> &, const <a href="tqrect.html">TQRect</a> & sr, int conversionFlags = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws the rectangle <em>sr</em> from the image at the given point. -<h3 class=fn>void <a name="drawImage-3"></a>TQPainter::drawImage ( const <a href="ntqpoint.html">TQPoint</a> & p, const <a href="tqimage.html">TQImage</a> & i, int conversion_flags = 0 ) +<h3 class=fn>void <a name="drawImage-3"></a>TQPainter::drawImage ( const <a href="tqpoint.html">TQPoint</a> & p, const <a href="tqimage.html">TQImage</a> & i, int conversion_flags = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws the image <em>i</em> at point <em>p</em>. @@ -630,7 +630,7 @@ This is an overloaded member function, provided for convenience. It behaves esse result (e.g. converting from 32-bit to 8-bit), use the <em>conversion_flags</em> to specify how you'd prefer this to happen. <p> <p>See also <a href="ntqt.html#ImageConversionFlags-enum">TQt::ImageConversionFlags</a>. -<h3 class=fn>void <a name="drawImage-4"></a>TQPainter::drawImage ( const <a href="ntqrect.html">TQRect</a> & r, const <a href="tqimage.html">TQImage</a> & i ) +<h3 class=fn>void <a name="drawImage-4"></a>TQPainter::drawImage ( const <a href="tqrect.html">TQRect</a> & r, const <a href="tqimage.html">TQImage</a> & i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws the image <em>i</em> into the rectangle <em>r</em>. The image will be @@ -644,12 +644,12 @@ current pen position to (<em>x2</em>, <em>y2</em>). <p> <p>See also <a href="#pen">pen</a>(). <p>Examples: <a href="coordsys.html#x2272">aclock/aclock.cpp</a>, <a href="drawlines-example.html#x1655">drawlines/connect.cpp</a>, <a href="progress-example.html#x73">progress/progress.cpp</a>, <a href="splitter-example.html#x1297">splitter/splitter.cpp</a>, <a href="themes-example.html#x284">themes/metal.cpp</a>, and <a href="themes-example.html#x214">themes/wood.cpp</a>. -<h3 class=fn>void <a name="drawLine-2"></a>TQPainter::drawLine ( const <a href="ntqpoint.html">TQPoint</a> & p1, const <a href="ntqpoint.html">TQPoint</a> & p2 ) +<h3 class=fn>void <a name="drawLine-2"></a>TQPainter::drawLine ( const <a href="tqpoint.html">TQPoint</a> & p1, const <a href="tqpoint.html">TQPoint</a> & p2 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws a line from point <em>p1</em> to point <em>p2</em>. -<h3 class=fn>void <a name="drawLineSegments"></a>TQPainter::drawLineSegments ( const <a href="ntqpointarray.html">TQPointArray</a> & a, int index = 0, int nlines = -1 ) +<h3 class=fn>void <a name="drawLineSegments"></a>TQPainter::drawLineSegments ( const <a href="tqpointarray.html">TQPointArray</a> & a, int index = 0, int nlines = -1 ) </h3> Draws <em>nlines</em> separate lines from points defined in <em>a</em>, starting at <em>a[index]</em> (<em>index</em> defaults to 0). If <em>nlines</em> is @@ -660,22 +660,22 @@ starting at <em>a[index]</em> (<em>index</em> defaults to 0). If <em>nlines</em> <p> <b>Warning:</b> On X11, coordinates that do not fit into 16-bit signed values are truncated. This limitation is expected to go away in TQt 4. -<p> <p>See also <a href="#drawPolyline">drawPolyline</a>(), <a href="#drawPolygon">drawPolygon</a>(), and <a href="ntqpen.html">TQPen</a>. +<p> <p>See also <a href="#drawPolyline">drawPolyline</a>(), <a href="#drawPolygon">drawPolygon</a>(), and <a href="tqpen.html">TQPen</a>. -<h3 class=fn>void <a name="drawPicture"></a>TQPainter::drawPicture ( int x, int y, const <a href="ntqpicture.html">TQPicture</a> & pic ) +<h3 class=fn>void <a name="drawPicture"></a>TQPainter::drawPicture ( int x, int y, const <a href="tqpicture.html">TQPicture</a> & pic ) </h3> Replays the picture <em>pic</em> translated by (<em>x</em>, <em>y</em>). -<p> This function does exactly the same as <a href="ntqpicture.html#play">TQPicture::play</a>() when +<p> This function does exactly the same as <a href="tqpicture.html#play">TQPicture::play</a>() when called with (<em>x</em>, <em>y</em>) = (0, 0). <p>Examples: <a href="picture-example.html#x113">picture/picture.cpp</a> and <a href="xform-example.html#x1234">xform/xform.cpp</a>. -<h3 class=fn>void <a name="drawPicture-2"></a>TQPainter::drawPicture ( const <a href="ntqpicture.html">TQPicture</a> & pic ) +<h3 class=fn>void <a name="drawPicture-2"></a>TQPainter::drawPicture ( const <a href="tqpicture.html">TQPicture</a> & pic ) </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Use one of the other <a href="#drawPicture">TQPainter::drawPicture</a>() functions with a (0, 0) offset instead. -<h3 class=fn>void <a name="drawPicture-3"></a>TQPainter::drawPicture ( const <a href="ntqpoint.html">TQPoint</a> & p, const <a href="ntqpicture.html">TQPicture</a> & pic ) +<h3 class=fn>void <a name="drawPicture-3"></a>TQPainter::drawPicture ( const <a href="tqpoint.html">TQPoint</a> & p, const <a href="tqpicture.html">TQPicture</a> & pic ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws picture <em>pic</em> at point <em>p</em>. @@ -692,13 +692,13 @@ direction. Zero degrees is at the 3 o'clock position. <p> <p>See also <a href="#drawArc">drawArc</a>() and <a href="#drawChord">drawChord</a>(). <p>Examples: <a href="drawdemo-example.html#x1069">drawdemo/drawdemo.cpp</a>, <a href="grapher-nsplugin-example.html#x2757">grapher/grapher.cpp</a>, <a href="tutorial1-10.html#x2349">t10/cannon.cpp</a>, and <a href="tutorial1-09.html#x2340">t9/cannon.cpp</a>. -<h3 class=fn>void <a name="drawPie-2"></a>TQPainter::drawPie ( const <a href="ntqrect.html">TQRect</a> & r, int a, int alen ) +<h3 class=fn>void <a name="drawPie-2"></a>TQPainter::drawPie ( const <a href="tqrect.html">TQRect</a> & r, int a, int alen ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws a pie segment that fits inside the rectangle <em>r</em> with start angle <em>a</em> and arc length <em>alen</em>. -<h3 class=fn>void <a name="drawPixmap"></a>TQPainter::drawPixmap ( int x, int y, const <a href="ntqpixmap.html">TQPixmap</a> & pixmap, int sx = 0, int sy = 0, int sw = -1, int sh = -1 ) +<h3 class=fn>void <a name="drawPixmap"></a>TQPainter::drawPixmap ( int x, int y, const <a href="tqpixmap.html">TQPixmap</a> & pixmap, int sx = 0, int sy = 0, int sw = -1, int sh = -1 ) </h3> Draws a pixmap at <em>(x, y)</em> by copying a part of <em>pixmap</em> into the paint device. @@ -708,22 +708,22 @@ to be drawn onto. <em>(sx, sy)</em> specifies the top-left point in <em>pixmap</ The default, (-1, -1), means all the way to the bottom right of the pixmap. <p> Currently the mask of the pixmap or it's alpha channel are ignored -when painting on a <a href="ntqprinter.html">TQPrinter</a>. -<p> <p>See also <a href="tqimage.html#bitBlt">bitBlt</a>() and <a href="ntqpixmap.html#setMask">TQPixmap::setMask</a>(). +when painting on a <a href="tqprinter.html">TQPrinter</a>. +<p> <p>See also <a href="tqimage.html#bitBlt">bitBlt</a>() and <a href="tqpixmap.html#setMask">TQPixmap::setMask</a>(). <p>Examples: <a href="grapher-nsplugin-example.html#x2758">grapher/grapher.cpp</a>, <a href="picture-example.html#x114">picture/picture.cpp</a>, <a href="tqdir-example.html#x1832">tqdir/tqdir.cpp</a>, <a href="qmag-example.html#x1782">qmag/qmag.cpp</a>, <a href="showimg-example.html#x1337">showimg/showimg.cpp</a>, <a href="tutorial1-10.html#x2350">t10/cannon.cpp</a>, and <a href="xform-example.html#x1235">xform/xform.cpp</a>. -<h3 class=fn>void <a name="drawPixmap-2"></a>TQPainter::drawPixmap ( const <a href="ntqpoint.html">TQPoint</a> & p, const <a href="ntqpixmap.html">TQPixmap</a> & pm, const <a href="ntqrect.html">TQRect</a> & sr ) +<h3 class=fn>void <a name="drawPixmap-2"></a>TQPainter::drawPixmap ( const <a href="tqpoint.html">TQPoint</a> & p, const <a href="tqpixmap.html">TQPixmap</a> & pm, const <a href="tqrect.html">TQRect</a> & sr ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws the rectangle <em>sr</em> of pixmap <em>pm</em> with its origin at point <em>p</em>. -<h3 class=fn>void <a name="drawPixmap-3"></a>TQPainter::drawPixmap ( const <a href="ntqpoint.html">TQPoint</a> & p, const <a href="ntqpixmap.html">TQPixmap</a> & pm ) +<h3 class=fn>void <a name="drawPixmap-3"></a>TQPainter::drawPixmap ( const <a href="tqpoint.html">TQPoint</a> & p, const <a href="tqpixmap.html">TQPixmap</a> & pm ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws the pixmap <em>pm</em> with its origin at point <em>p</em>. -<h3 class=fn>void <a name="drawPixmap-4"></a>TQPainter::drawPixmap ( const <a href="ntqrect.html">TQRect</a> & r, const <a href="ntqpixmap.html">TQPixmap</a> & pm ) +<h3 class=fn>void <a name="drawPixmap-4"></a>TQPainter::drawPixmap ( const <a href="tqrect.html">TQRect</a> & r, const <a href="tqpixmap.html">TQPixmap</a> & pm ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws the pixmap <em>pm</em> into the rectangle <em>r</em>. The pixmap is @@ -732,15 +732,15 @@ scaled to fit the rectangle, if image and rectangle size disagree. <h3 class=fn>void <a name="drawPoint"></a>TQPainter::drawPoint ( int x, int y ) </h3> Draws/plots a single point at <em>(x, y)</em> using the current pen. -<p> <p>See also <a href="ntqpen.html">TQPen</a>. +<p> <p>See also <a href="tqpen.html">TQPen</a>. <p>Examples: <a href="desktop-example.html#x1734">desktop/desktop.cpp</a> and <a href="drawlines-example.html#x1656">drawlines/connect.cpp</a>. -<h3 class=fn>void <a name="drawPoint-2"></a>TQPainter::drawPoint ( const <a href="ntqpoint.html">TQPoint</a> & p ) +<h3 class=fn>void <a name="drawPoint-2"></a>TQPainter::drawPoint ( const <a href="tqpoint.html">TQPoint</a> & p ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws the point <em>p</em>. -<h3 class=fn>void <a name="drawPoints"></a>TQPainter::drawPoints ( const <a href="ntqpointarray.html">TQPointArray</a> & a, int index = 0, int npoints = -1 ) +<h3 class=fn>void <a name="drawPoints"></a>TQPainter::drawPoints ( const <a href="tqpointarray.html">TQPointArray</a> & a, int index = 0, int npoints = -1 ) </h3> Draws/plots an array of points, <em>a</em>, using the current pen. <p> If <em>index</em> is non-zero (the default is zero) only points from <em>index</em> are drawn. If <em>npoints</em> is negative (the default) the rest @@ -750,7 +750,7 @@ greater, <em>npoints</em> points are drawn. values are truncated. This limitation is expected to go away in TQt 4. -<h3 class=fn>void <a name="drawPolygon"></a>TQPainter::drawPolygon ( const <a href="ntqpointarray.html">TQPointArray</a> & a, bool winding = FALSE, int index = 0, int npoints = -1 ) +<h3 class=fn>void <a name="drawPolygon"></a>TQPainter::drawPolygon ( const <a href="tqpointarray.html">TQPointArray</a> & a, bool winding = FALSE, int index = 0, int npoints = -1 ) </h3> Draws the polygon defined by the <em>npoints</em> points in <em>a</em> starting at <em>a[index]</em>. (<em>index</em> defaults to 0.) @@ -765,10 +765,10 @@ TRUE, the polygon is filled using the winding fill algorithm. If <p> <b>Warning:</b> On X11, coordinates that do not fit into 16-bit signed values are truncated. This limitation is expected to go away in TQt 4. -<p> <p>See also <a href="#drawLineSegments">drawLineSegments</a>(), <a href="#drawPolyline">drawPolyline</a>(), and <a href="ntqpen.html">TQPen</a>. +<p> <p>See also <a href="#drawLineSegments">drawLineSegments</a>(), <a href="#drawPolyline">drawPolyline</a>(), and <a href="tqpen.html">TQPen</a>. <p>Examples: <a href="desktop-example.html#x1735">desktop/desktop.cpp</a> and <a href="picture-example.html#x115">picture/picture.cpp</a>. -<h3 class=fn>void <a name="drawPolyline"></a>TQPainter::drawPolyline ( const <a href="ntqpointarray.html">TQPointArray</a> & a, int index = 0, int npoints = -1 ) +<h3 class=fn>void <a name="drawPolyline"></a>TQPainter::drawPolyline ( const <a href="tqpointarray.html">TQPointArray</a> & a, int index = 0, int npoints = -1 ) </h3> Draws the polyline defined by the <em>npoints</em> points in <em>a</em> starting at <em>a[index]</em>. (<em>index</em> defaults to 0.) @@ -777,17 +777,17 @@ array are used (i.e. a.size()-index-1 line segments are drawn). <p> <b>Warning:</b> On X11, coordinates that do not fit into 16-bit signed values are truncated. This limitation is expected to go away in TQt 4. -<p> <p>See also <a href="#drawLineSegments">drawLineSegments</a>(), <a href="#drawPolygon">drawPolygon</a>(), and <a href="ntqpen.html">TQPen</a>. +<p> <p>See also <a href="#drawLineSegments">drawLineSegments</a>(), <a href="#drawPolygon">drawPolygon</a>(), and <a href="tqpen.html">TQPen</a>. <p>Examples: <a href="scribble-example.html#x917">scribble/scribble.cpp</a> and <a href="themes-example.html#x285">themes/metal.cpp</a>. <h3 class=fn>void <a name="drawRect"></a>TQPainter::drawRect ( int x, int y, int w, int h ) </h3> Draws a rectangle with upper left corner at <em>(x, y)</em> and with width <em>w</em> and height <em>h</em>. -<p> <p>See also <a href="ntqpen.html">TQPen</a> and <a href="#drawRoundRect">drawRoundRect</a>(). +<p> <p>See also <a href="tqpen.html">TQPen</a> and <a href="#drawRoundRect">drawRoundRect</a>(). <p>Examples: <a href="drawdemo-example.html#x1070">drawdemo/drawdemo.cpp</a>, <a href="picture-example.html#x116">picture/picture.cpp</a>, <a href="tutorial1-10.html#x2351">t10/cannon.cpp</a>, <a href="tutorial1-11.html#x2366">t11/cannon.cpp</a>, <a href="tutorial1-09.html#x2341">t9/cannon.cpp</a>, <a href="tooltip-example.html#x444">tooltip/tooltip.cpp</a>, and <a href="trivial-nsplugin-example.html#x2737">trivial/trivial.cpp</a>. -<h3 class=fn>void <a name="drawRect-2"></a>TQPainter::drawRect ( const <a href="ntqrect.html">TQRect</a> & r ) +<h3 class=fn>void <a name="drawRect-2"></a>TQPainter::drawRect ( const <a href="tqrect.html">TQRect</a> & r ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws the rectangle <em>r</em>. @@ -798,16 +798,16 @@ Draws a rectangle with rounded corners at <em>(x, y)</em>, with width <em>w</em> <p> The <em>xRnd</em> and <em>yRnd</em> arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness. <p> The width and height include all of the drawn lines. -<p> <p>See also <a href="#drawRect">drawRect</a>() and <a href="ntqpen.html">TQPen</a>. +<p> <p>See also <a href="#drawRect">drawRect</a>() and <a href="tqpen.html">TQPen</a>. <p>Examples: <a href="drawdemo-example.html#x1071">drawdemo/drawdemo.cpp</a> and <a href="themes-example.html#x215">themes/wood.cpp</a>. -<h3 class=fn>void <a name="drawRoundRect-2"></a>TQPainter::drawRoundRect ( const <a href="ntqrect.html">TQRect</a> & r, int xRnd = 25, int yRnd = 25 ) +<h3 class=fn>void <a name="drawRoundRect-2"></a>TQPainter::drawRoundRect ( const <a href="tqrect.html">TQRect</a> & r, int xRnd = 25, int yRnd = 25 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws a rounded rectangle <em>r</em>, rounding to the x position <em>xRnd</em> and the y position <em>yRnd</em> on each corner. -<h3 class=fn>void <a name="drawText"></a>TQPainter::drawText ( const <a href="ntqpoint.html">TQPoint</a> & p, const <a href="tqstring.html">TQString</a> &, int pos, int len, <a href="tqpainter.html#TextDirection-enum">TextDirection</a> dir = Auto ) +<h3 class=fn>void <a name="drawText"></a>TQPainter::drawText ( const <a href="tqpoint.html">TQPoint</a> & p, const <a href="tqstring.html">TQString</a> &, int pos, int len, <a href="tqpainter.html#TextDirection-enum">TextDirection</a> dir = Auto ) </h3> <p> Draws the text from position <em>pos</em>, at point <em>p</em>. If <em>len</em> is @@ -831,7 +831,7 @@ default) all the text is drawn, otherwise the first <em>len</em> characters are drawn. The text's direction is given by <em>dir</em>. <p> <p>See also <a href="#TextDirection-enum">TQPainter::TextDirection</a>. -<h3 class=fn>void <a name="drawText-3"></a>TQPainter::drawText ( const <a href="ntqpoint.html">TQPoint</a> &, const <a href="tqstring.html">TQString</a> &, int len = -1, <a href="tqpainter.html#TextDirection-enum">TextDirection</a> dir = Auto ) +<h3 class=fn>void <a name="drawText-3"></a>TQPainter::drawText ( const <a href="tqpoint.html">TQPoint</a> &, const <a href="tqstring.html">TQString</a> &, int len = -1, <a href="tqpainter.html#TextDirection-enum">TextDirection</a> dir = Auto ) </h3> <p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. @@ -846,7 +846,7 @@ characters are drawn. The text's direction is given by <em>dir</em>. -1 the entire string is drawn, otherwise just the first <em>len</em> characters. The text's direction is specified by <em>dir</em>. -<h3 class=fn>void <a name="drawText-5"></a>TQPainter::drawText ( int x, int y, int w, int h, int flags, const <a href="tqstring.html">TQString</a> &, int len = -1, <a href="ntqrect.html">TQRect</a> * br = 0, TQTextParag ** internal = 0 ) +<h3 class=fn>void <a name="drawText-5"></a>TQPainter::drawText ( int x, int y, int w, int h, int flags, const <a href="tqstring.html">TQString</a> &, int len = -1, <a href="tqrect.html">TQRect</a> * br = 0, TQTextParag ** internal = 0 ) </h3> <p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. @@ -857,7 +857,7 @@ drawn. The text's flags that are given in the <em>flags</em> parameter are <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a> and <a href="ntqt.html#TextFlags-enum">TQt::TextFlags</a> OR'd together. <em>br</em> (if not null) is set to the actual bounding rectangle of the output. The <em>internal</em> parameter is for internal use only. -<h3 class=fn>void <a name="drawText-6"></a>TQPainter::drawText ( const <a href="ntqrect.html">TQRect</a> & r, int tf, const <a href="tqstring.html">TQString</a> & str, int len = -1, <a href="ntqrect.html">TQRect</a> * brect = 0, TQTextParag ** internal = 0 ) +<h3 class=fn>void <a name="drawText-6"></a>TQPainter::drawText ( const <a href="tqrect.html">TQRect</a> & r, int tf, const <a href="tqstring.html">TQString</a> & str, int len = -1, <a href="tqrect.html">TQRect</a> * brect = 0, TQTextParag ** internal = 0 ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws at most <em>len</em> characters from <em>str</em> in the rectangle <em>r</em>. @@ -870,7 +870,7 @@ defaults to AlignTop. the output. <em>internal</em> is, yes, internal. <p> <p>See also <a href="#boundingRect">boundingRect</a>(). -<h3 class=fn>void <a name="drawTiledPixmap"></a>TQPainter::drawTiledPixmap ( int x, int y, int w, int h, const <a href="ntqpixmap.html">TQPixmap</a> & pixmap, int sx = 0, int sy = 0 ) +<h3 class=fn>void <a name="drawTiledPixmap"></a>TQPainter::drawTiledPixmap ( int x, int y, int w, int h, const <a href="tqpixmap.html">TQPixmap</a> & pixmap, int sx = 0, int sy = 0 ) </h3> Draws a tiled <em>pixmap</em> in the specified rectangle. <p> <em>(x, y)</em> specifies the top-left point in the paint device that is @@ -882,13 +882,13 @@ potentially much more efficient depending on the underlying window system. <p> <p>See also <a href="#drawPixmap">drawPixmap</a>(). -<h3 class=fn>void <a name="drawTiledPixmap-2"></a>TQPainter::drawTiledPixmap ( const <a href="ntqrect.html">TQRect</a> & r, const <a href="ntqpixmap.html">TQPixmap</a> & pm, const <a href="ntqpoint.html">TQPoint</a> & sp ) +<h3 class=fn>void <a name="drawTiledPixmap-2"></a>TQPainter::drawTiledPixmap ( const <a href="tqrect.html">TQRect</a> & r, const <a href="tqpixmap.html">TQPixmap</a> & pm, const <a href="tqpoint.html">TQPoint</a> & sp ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws a tiled pixmap, <em>pm</em>, inside rectangle <em>r</em> with its origin at point <em>sp</em>. -<h3 class=fn>void <a name="drawTiledPixmap-3"></a>TQPainter::drawTiledPixmap ( const <a href="ntqrect.html">TQRect</a> & r, const <a href="ntqpixmap.html">TQPixmap</a> & pm ) +<h3 class=fn>void <a name="drawTiledPixmap-3"></a>TQPainter::drawTiledPixmap ( const <a href="tqrect.html">TQRect</a> & r, const <a href="tqpixmap.html">TQPixmap</a> & pm ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws a tiled pixmap, <em>pm</em>, inside rectangle <em>r</em>. @@ -918,12 +918,12 @@ indicate <a href="focus.html#keyboard-focus">keyboard focus</a> (when <a href="n been <a href="#rotate">rotated</a> or <a href="#shear">sheared</a>. <p> <p>See also <a href="#drawRect">drawRect</a>() and <a href="ntqapplication.html#style">TQApplication::style</a>(). -<h3 class=fn>void <a name="drawWinFocusRect-3"></a>TQPainter::drawWinFocusRect ( const <a href="ntqrect.html">TQRect</a> & r ) +<h3 class=fn>void <a name="drawWinFocusRect-3"></a>TQPainter::drawWinFocusRect ( const <a href="tqrect.html">TQRect</a> & r ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws rectangle <em>r</em> as a window focus rectangle. -<h3 class=fn>void <a name="drawWinFocusRect-4"></a>TQPainter::drawWinFocusRect ( const <a href="ntqrect.html">TQRect</a> & r, const <a href="tqcolor.html">TQColor</a> & bgColor ) +<h3 class=fn>void <a name="drawWinFocusRect-4"></a>TQPainter::drawWinFocusRect ( const <a href="tqrect.html">TQRect</a> & r, const <a href="tqcolor.html">TQColor</a> & bgColor ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws rectangle <em>r</em> as a window focus rectangle using background @@ -943,7 +943,7 @@ is needed, namely double buffering. p.<a href="#drawPixmap">drawPixmap</a>( 0, 0, myPixmap ); </pre> -<p> Since you can't draw a <a href="ntqpixmap.html">TQPixmap</a> while it is being painted, it is +<p> Since you can't draw a <a href="tqpixmap.html">TQPixmap</a> while it is being painted, it is necessary to close the active painter. <p> <p>See also <a href="#begin">begin</a>() and <a href="#isActive">isActive</a>(). @@ -955,7 +955,7 @@ necessary to close the active painter. <tt>fillRect( x, y, w, h, backgroundColor() )</tt>. <p>Examples: <a href="listboxcombo-example.html#x1414">listboxcombo/listboxcombo.cpp</a> and <a href="showimg-example.html#x1338">showimg/showimg.cpp</a>. -<h3 class=fn>void <a name="eraseRect-2"></a>TQPainter::eraseRect ( const <a href="ntqrect.html">TQRect</a> & r ) +<h3 class=fn>void <a name="eraseRect-2"></a>TQPainter::eraseRect ( const <a href="tqrect.html">TQRect</a> & r ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Erases the area inside the rectangle <em>r</em>. @@ -969,12 +969,12 @@ pattern brush. <p> <p>See also <a href="#drawRect">drawRect</a>(). <p>Examples: <a href="listboxcombo-example.html#x1415">listboxcombo/listboxcombo.cpp</a>, <a href="progress-example.html#x75">progress/progress.cpp</a>, <a href="tqdir-example.html#x1833">tqdir/tqdir.cpp</a>, <a href="qfd-example.html#x1998">qfd/fontdisplayer.cpp</a>, <a href="themes-example.html#x286">themes/metal.cpp</a>, and <a href="themes-example.html#x216">themes/wood.cpp</a>. -<h3 class=fn>void <a name="fillRect-2"></a>TQPainter::fillRect ( const <a href="ntqrect.html">TQRect</a> & r, const <a href="tqbrush.html">TQBrush</a> & brush ) +<h3 class=fn>void <a name="fillRect-2"></a>TQPainter::fillRect ( const <a href="tqrect.html">TQRect</a> & r, const <a href="tqbrush.html">TQBrush</a> & brush ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Fills the rectangle <em>r</em> using brush <em>brush</em>. -<h3 class=fn>void <a name="flush"></a>TQPainter::flush ( const <a href="ntqregion.html">TQRegion</a> & region, <a href="tqpainter.html#CoordinateMode-enum">CoordinateMode</a> cm = CoordDevice ) +<h3 class=fn>void <a name="flush"></a>TQPainter::flush ( const <a href="tqregion.html">TQRegion</a> & region, <a href="tqpainter.html#CoordinateMode-enum">CoordinateMode</a> cm = CoordDevice ) </h3> Flushes any buffered drawing operations inside the region <em>region</em> using clipping mode <em>cm</em>. <p> The flush may update the whole device if the platform does not @@ -1051,9 +1051,9 @@ FALSE. <p> Use <a href="#drawLine">drawLine</a>() instead. <p> Draws a line from the current pen position to <em>(x, y)</em> and sets <em>(x, y)</em> to be the new current pen position. -<p> <p>See also <a href="ntqpen.html">TQPen</a>, <a href="#moveTo">moveTo</a>(), <a href="#drawLine">drawLine</a>(), and <a href="#pos">pos</a>(). +<p> <p>See also <a href="tqpen.html">TQPen</a>, <a href="#moveTo">moveTo</a>(), <a href="#drawLine">drawLine</a>(), and <a href="#pos">pos</a>(). -<h3 class=fn>void <a name="lineTo-2"></a>TQPainter::lineTo ( const <a href="ntqpoint.html">TQPoint</a> & p ) +<h3 class=fn>void <a name="lineTo-2"></a>TQPainter::lineTo ( const <a href="tqpoint.html">TQPoint</a> & p ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Draws a line to the point <em>p</em>. @@ -1063,19 +1063,19 @@ This is an overloaded member function, provided for convenience. It behaves esse <p> Sets the current pen position to <em>(x, y)</em> <p> <p>See also <a href="#lineTo">lineTo</a>() and <a href="#pos">pos</a>(). -<h3 class=fn>void <a name="moveTo-2"></a>TQPainter::moveTo ( const <a href="ntqpoint.html">TQPoint</a> & p ) +<h3 class=fn>void <a name="moveTo-2"></a>TQPainter::moveTo ( const <a href="tqpoint.html">TQPoint</a> & p ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Moves to the point <em>p</em>. -<h3 class=fn>const <a href="ntqpen.html">TQPen</a> & <a name="pen"></a>TQPainter::pen () const +<h3 class=fn>const <a href="tqpen.html">TQPen</a> & <a name="pen"></a>TQPainter::pen () const </h3> <p> Returns the painter's current pen. <p> <p>See also <a href="#setPen">setPen</a>(). <p>Examples: <a href="progress-example.html#x76">progress/progress.cpp</a>, and <a href="themes-example.html#x218">themes/wood.cpp</a>. -<h3 class=fn><a href="ntqpoint.html">TQPoint</a> <a name="pos"></a>TQPainter::pos () const +<h3 class=fn><a href="tqpoint.html">TQPoint</a> <a name="pos"></a>TQPainter::pos () const </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Returns the current position of the pen. @@ -1092,8 +1092,8 @@ This is an overloaded member function, provided for convenience. It behaves esse Redirects all paint commands for a paint device, <em>pdev</em>, to another paint device, <em>replacement</em>, unless <em>replacement</em> is 0. If <em>replacement</em> is 0, the redirection for <em>pdev</em> is removed. -<p> In general, you'll probably find calling <a href="ntqpixmap.html#grabWidget">TQPixmap::grabWidget</a>() or -<a href="ntqpixmap.html#grabWindow">TQPixmap::grabWindow</a>() is an easier solution. +<p> In general, you'll probably find calling <a href="tqpixmap.html#grabWidget">TQPixmap::grabWidget</a>() or +<a href="tqpixmap.html#grabWindow">TQPixmap::grabWindow</a>() is an easier solution. <h3 class=fn>void <a name="resetXForm"></a>TQPainter::resetXForm () </h3> @@ -1153,7 +1153,7 @@ either <a href="ntqt.html#BGMode-enum">TransparentMode</a> (the default) or <a h background pixels. Opaque mode fills these space with the current background color. <p> Note that in order to draw a bitmap or pixmap transparently, you -must use <a href="ntqpixmap.html#setMask">TQPixmap::setMask</a>(). +must use <a href="tqpixmap.html#setMask">TQPixmap::setMask</a>(). <p> <p>See also <a href="#backgroundMode">backgroundMode</a>() and <a href="#setBackgroundColor">setBackgroundColor</a>(). <p>Example: <a href="picture-example.html#x119">picture/picture.cpp</a>. @@ -1185,7 +1185,7 @@ brush. This setting only applies to pattern brushes and pixmap brushes. <p> <p>See also <a href="#brushOrigin">brushOrigin</a>(). -<h3 class=fn>void <a name="setBrushOrigin-2"></a>TQPainter::setBrushOrigin ( const <a href="ntqpoint.html">TQPoint</a> & p ) +<h3 class=fn>void <a name="setBrushOrigin-2"></a>TQPainter::setBrushOrigin ( const <a href="tqpoint.html">TQPoint</a> & p ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Sets the brush origin to point <em>p</em>. @@ -1204,14 +1204,14 @@ coordinates. <p> <p>See also <a href="#setClipRegion">setClipRegion</a>(), <a href="#clipRegion">clipRegion</a>(), <a href="#setClipping">setClipping</a>(), and <a href="#CoordinateMode-enum">TQPainter::CoordinateMode</a>. <p>Examples: <a href="grapher-nsplugin-example.html#x2762">grapher/grapher.cpp</a>, <a href="progress-example.html#x77">progress/progress.cpp</a>, <a href="showimg-example.html#x1339">showimg/showimg.cpp</a>, <a href="splitter-example.html#x1298">splitter/splitter.cpp</a>, and <a href="trivial-nsplugin-example.html#x2739">trivial/trivial.cpp</a>. -<h3 class=fn>void <a name="setClipRect-2"></a>TQPainter::setClipRect ( const <a href="ntqrect.html">TQRect</a> & r, <a href="tqpainter.html#CoordinateMode-enum">CoordinateMode</a> m = CoordDevice ) +<h3 class=fn>void <a name="setClipRect-2"></a>TQPainter::setClipRect ( const <a href="tqrect.html">TQRect</a> & r, <a href="tqpainter.html#CoordinateMode-enum">CoordinateMode</a> m = CoordDevice ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Sets the clip region to the rectangle <em>r</em> and enables clipping. The clip mode is set to <em>m</em>. <p> <p>See also <a href="#CoordinateMode-enum">CoordinateMode</a>. -<h3 class=fn>void <a name="setClipRegion"></a>TQPainter::setClipRegion ( const <a href="ntqregion.html">TQRegion</a> & rgn, <a href="tqpainter.html#CoordinateMode-enum">CoordinateMode</a> m = CoordDevice ) +<h3 class=fn>void <a name="setClipRegion"></a>TQPainter::setClipRegion ( const <a href="tqregion.html">TQRegion</a> & rgn, <a href="tqpainter.html#CoordinateMode-enum">CoordinateMode</a> m = CoordDevice ) </h3> Sets the clip region to <em>rgn</em> and enables clipping. The clip mode is set to <em>m</em>. @@ -1235,7 +1235,7 @@ color is the same as the pen color. <p> <p>See also <a href="#font">font</a>() and <a href="#drawText">drawText</a>(). <p>Examples: <a href="drawdemo-example.html#x1075">drawdemo/drawdemo.cpp</a>, <a href="grapher-nsplugin-example.html#x2763">grapher/grapher.cpp</a>, <a href="hello-example.html#x1636">hello/hello.cpp</a>, <a href="picture-example.html#x121">picture/picture.cpp</a>, <a href="qwerty-example.html#x385">qwerty/qwerty.cpp</a>, <a href="tutorial1-13.html#x2403">t13/cannon.cpp</a>, and <a href="xform-example.html#x1240">xform/xform.cpp</a>. -<h3 class=fn>void <a name="setPen"></a>TQPainter::setPen ( const <a href="ntqpen.html">TQPen</a> & pen ) +<h3 class=fn>void <a name="setPen"></a>TQPainter::setPen ( const <a href="tqpen.html">TQPen</a> & pen ) </h3> Sets a new painter pen. <p> The <em>pen</em> defines how to draw lines and outlines, and it also @@ -1248,14 +1248,14 @@ defines the text color. This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Sets the painter's pen to have style <em>style</em>, width 0 and black color. -<p> <p>See also <a href="#pen">pen</a>() and <a href="ntqpen.html">TQPen</a>. +<p> <p>See also <a href="#pen">pen</a>() and <a href="tqpen.html">TQPen</a>. <h3 class=fn>void <a name="setPen-3"></a>TQPainter::setPen ( const <a href="tqcolor.html">TQColor</a> & color ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Sets the painter's pen to have style <a href="ntqt.html#PenStyle-enum">SolidLine</a>, width 0 and the specified <em>color</em>. -<p> <p>See also <a href="#pen">pen</a>() and <a href="ntqpen.html">TQPen</a>. +<p> <p>See also <a href="#pen">pen</a>() and <a href="tqpen.html">TQPen</a>. <h3 class=fn>void <a name="setRasterOp"></a>TQPainter::setRasterOp ( <a href="ntqt.html#RasterOp-enum">RasterOp</a> r ) </h3> @@ -1300,7 +1300,7 @@ rectangle. See the <a href="coordsys.html">Coordinate System Overview</a> for an <p> <p>See also <a href="#viewport">viewport</a>(), <a href="#setWindow">setWindow</a>(), <a href="#setViewXForm">setViewXForm</a>(), <a href="#setWorldMatrix">setWorldMatrix</a>(), <a href="#setWorldXForm">setWorldXForm</a>(), and <a href="#xForm">xForm</a>(). <p>Example: <a href="coordsys.html#x2276">aclock/aclock.cpp</a>. -<h3 class=fn>void <a name="setViewport-2"></a>TQPainter::setViewport ( const <a href="ntqrect.html">TQRect</a> & r ) +<h3 class=fn>void <a name="setViewport-2"></a>TQPainter::setViewport ( const <a href="tqrect.html">TQRect</a> & r ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Sets the painter's viewport to rectangle <em>r</em>. @@ -1318,21 +1318,21 @@ rectangle. See the <a href="coordsys.html">Coordinate System Overview</a> for an <p> <p>See also <a href="#window">window</a>(), <a href="#setViewport">setViewport</a>(), <a href="#setViewXForm">setViewXForm</a>(), <a href="#setWorldMatrix">setWorldMatrix</a>(), and <a href="#setWorldXForm">setWorldXForm</a>(). <p>Examples: <a href="coordsys.html#x2277">aclock/aclock.cpp</a> and <a href="drawdemo-example.html#x1077">drawdemo/drawdemo.cpp</a>. -<h3 class=fn>void <a name="setWindow-2"></a>TQPainter::setWindow ( const <a href="ntqrect.html">TQRect</a> & r ) +<h3 class=fn>void <a name="setWindow-2"></a>TQPainter::setWindow ( const <a href="tqrect.html">TQRect</a> & r ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Sets the painter's window to rectangle <em>r</em>. -<h3 class=fn>void <a name="setWorldMatrix"></a>TQPainter::setWorldMatrix ( const <a href="ntqwmatrix.html">TQWMatrix</a> & m, bool combine = FALSE ) +<h3 class=fn>void <a name="setWorldMatrix"></a>TQPainter::setWorldMatrix ( const <a href="tqwmatrix.html">TQWMatrix</a> & m, bool combine = FALSE ) </h3> -Sets the world <a href="ntqwmatrix.html#TransformationMode">transformation matrix</a> to <em>m</em> and enables world +Sets the world <a href="tqwmatrix.html#TransformationMode">transformation matrix</a> to <em>m</em> and enables world transformation. <p> If <em>combine</em> is TRUE, then <em>m</em> is combined with the current transformation matrix, otherwise <em>m</em> replaces the current transformation matrix. <p> If <em>m</em> is the identity matrix and <em>combine</em> is FALSE, this function calls <a href="#setWorldXForm">setWorldXForm</a>(FALSE). (The identity matrix is the -matrix where <a href="ntqwmatrix.html#m11">TQWMatrix::m11</a>() and <a href="ntqwmatrix.html#m22">TQWMatrix::m22</a>() are 1.0 and the +matrix where <a href="tqwmatrix.html#m11">TQWMatrix::m11</a>() and <a href="tqwmatrix.html#m22">TQWMatrix::m22</a>() are 1.0 and the rest are 0.0.) <p> World transformations are applied after the view transformations (i.e. <a href="#setWindow">window</a> and <a href="#setViewport">viewport</a>). @@ -1348,25 +1348,25 @@ a TQWMatrix: <p> <pre> void TQPainter::rotate( double a ) { - <a href="ntqwmatrix.html">TQWMatrix</a> m; - m.<a href="ntqwmatrix.html#rotate">rotate</a>( a ); + <a href="tqwmatrix.html">TQWMatrix</a> m; + m.<a href="tqwmatrix.html#rotate">rotate</a>( a ); <a href="#setWorldMatrix">setWorldMatrix</a>( m, TRUE ); } </pre> <p> Note that you should always use <em>combine</em> when you are drawing -into a <a href="ntqpicture.html">TQPicture</a>. Otherwise it may not be possible to replay the +into a <a href="tqpicture.html">TQPicture</a>. Otherwise it may not be possible to replay the picture with additional transformations. Using translate(), scale(), etc., is safe. <p> For a brief overview of coordinate transformation, see the <a href="coordsys.html">Coordinate System Overview.</a> -<p> <p>See also <a href="#worldMatrix">worldMatrix</a>(), <a href="#setWorldXForm">setWorldXForm</a>(), <a href="#setWindow">setWindow</a>(), <a href="#setViewport">setViewport</a>(), <a href="#setViewXForm">setViewXForm</a>(), <a href="#xForm">xForm</a>(), and <a href="ntqwmatrix.html">TQWMatrix</a>. +<p> <p>See also <a href="#worldMatrix">worldMatrix</a>(), <a href="#setWorldXForm">setWorldXForm</a>(), <a href="#setWindow">setWindow</a>(), <a href="#setViewport">setViewport</a>(), <a href="#setViewXForm">setViewXForm</a>(), <a href="#xForm">xForm</a>(), and <a href="tqwmatrix.html">TQWMatrix</a>. <p>Examples: <a href="drawdemo-example.html#x1078">drawdemo/drawdemo.cpp</a> and <a href="xform-example.html#x1242">xform/xform.cpp</a>. <h3 class=fn>void <a name="setWorldXForm"></a>TQPainter::setWorldXForm ( bool enable ) </h3> Enables world transformations if <em>enable</em> is TRUE, or disables world transformations if <em>enable</em> is FALSE. The world -<a href="ntqwmatrix.html#TransformationMode">transformation matrix</a> is not changed. +<a href="tqwmatrix.html#TransformationMode">transformation matrix</a> is not changed. <p> <p>See also <a href="#setWorldMatrix">setWorldMatrix</a>(), <a href="#setWindow">setWindow</a>(), <a href="#setViewport">setViewport</a>(), <a href="#setViewXForm">setViewXForm</a>(), and <a href="#xForm">xForm</a>(). <h3 class=fn>void <a name="shear"></a>TQPainter::shear ( double sh, double sv ) @@ -1406,45 +1406,45 @@ Translates the coordinate system by <em>(dx, dy)</em>. After this call, <p> <p>See also <a href="#scale">scale</a>(), <a href="#shear">shear</a>(), <a href="#rotate">rotate</a>(), <a href="#resetXForm">resetXForm</a>(), <a href="#setWorldMatrix">setWorldMatrix</a>(), and <a href="#xForm">xForm</a>(). <p>Examples: <a href="tqaction-application-example.html#x1148">action/application.cpp</a>, <a href="simple-application-example.html#x1566">application/application.cpp</a>, <a href="tutorial1-10.html#x2356">t10/cannon.cpp</a>, <a href="tutorial1-09.html#x2345">t9/cannon.cpp</a>, <a href="themes-example.html#x289">themes/metal.cpp</a>, <a href="themes-example.html#x223">themes/wood.cpp</a>, and <a href="xform-example.html#x1243">xform/xform.cpp</a>. -<h3 class=fn><a href="ntqrect.html">TQRect</a> <a name="viewport"></a>TQPainter::viewport () const +<h3 class=fn><a href="tqrect.html">TQRect</a> <a name="viewport"></a>TQPainter::viewport () const </h3> Returns the viewport rectangle. <p> <p>See also <a href="#setViewport">setViewport</a>() and <a href="#setViewXForm">setViewXForm</a>(). <p>Example: <a href="coordsys.html#x2278">aclock/aclock.cpp</a>. -<h3 class=fn><a href="ntqrect.html">TQRect</a> <a name="window"></a>TQPainter::window () const +<h3 class=fn><a href="tqrect.html">TQRect</a> <a name="window"></a>TQPainter::window () const </h3> Returns the window rectangle. <p> <p>See also <a href="#setWindow">setWindow</a>() and <a href="#setViewXForm">setViewXForm</a>(). -<h3 class=fn>const <a href="ntqwmatrix.html">TQWMatrix</a> & <a name="worldMatrix"></a>TQPainter::worldMatrix () const +<h3 class=fn>const <a href="tqwmatrix.html">TQWMatrix</a> & <a name="worldMatrix"></a>TQPainter::worldMatrix () const </h3> -Returns the world <a href="ntqwmatrix.html#TransformationMode">transformation matrix</a>. +Returns the world <a href="tqwmatrix.html#TransformationMode">transformation matrix</a>. <p> <p>See also <a href="#setWorldMatrix">setWorldMatrix</a>(). -<h3 class=fn><a href="ntqpoint.html">TQPoint</a> <a name="xForm"></a>TQPainter::xForm ( const <a href="ntqpoint.html">TQPoint</a> & pv ) const +<h3 class=fn><a href="tqpoint.html">TQPoint</a> <a name="xForm"></a>TQPainter::xForm ( const <a href="tqpoint.html">TQPoint</a> & pv ) const </h3> Returns the point <em>pv</em> transformed from model coordinates to device coordinates. -<p> <p>See also <a href="#xFormDev">xFormDev</a>() and <a href="ntqwmatrix.html#map">TQWMatrix::map</a>(). +<p> <p>See also <a href="#xFormDev">xFormDev</a>() and <a href="tqwmatrix.html#map">TQWMatrix::map</a>(). -<h3 class=fn><a href="ntqrect.html">TQRect</a> <a name="xForm-2"></a>TQPainter::xForm ( const <a href="ntqrect.html">TQRect</a> & rv ) const +<h3 class=fn><a href="tqrect.html">TQRect</a> <a name="xForm-2"></a>TQPainter::xForm ( const <a href="tqrect.html">TQRect</a> & rv ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Returns the rectangle <em>rv</em> transformed from model coordinates to device coordinates. <p> If world transformation is enabled and rotation or shearing has been specified, then the bounding rectangle is returned. -<p> <p>See also <a href="#xFormDev">xFormDev</a>() and <a href="ntqwmatrix.html#map">TQWMatrix::map</a>(). +<p> <p>See also <a href="#xFormDev">xFormDev</a>() and <a href="tqwmatrix.html#map">TQWMatrix::map</a>(). -<h3 class=fn><a href="ntqpointarray.html">TQPointArray</a> <a name="xForm-3"></a>TQPainter::xForm ( const <a href="ntqpointarray.html">TQPointArray</a> & av ) const +<h3 class=fn><a href="tqpointarray.html">TQPointArray</a> <a name="xForm-3"></a>TQPainter::xForm ( const <a href="tqpointarray.html">TQPointArray</a> & av ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Returns the point array <em>av</em> transformed from model coordinates to device coordinates. -<p> <p>See also <a href="#xFormDev">xFormDev</a>() and <a href="ntqwmatrix.html#map">TQWMatrix::map</a>(). +<p> <p>See also <a href="#xFormDev">xFormDev</a>() and <a href="tqwmatrix.html#map">TQWMatrix::map</a>(). -<h3 class=fn><a href="ntqpointarray.html">TQPointArray</a> <a name="xForm-4"></a>TQPainter::xForm ( const <a href="ntqpointarray.html">TQPointArray</a> & av, int index, int npoints ) const +<h3 class=fn><a href="tqpointarray.html">TQPointArray</a> <a name="xForm-4"></a>TQPainter::xForm ( const <a href="tqpointarray.html">TQPointArray</a> & av, int index, int npoints ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Returns the point array <em>av</em> transformed from model coordinates @@ -1455,37 +1455,37 @@ transformed. If <em>npoints</em> is negative, all points from <em>av[index]</em> were transformed. <p> Example: <pre> - <a href="ntqpointarray.html">TQPointArray</a> a(10); - <a href="ntqpointarray.html">TQPointArray</a> b; + <a href="tqpointarray.html">TQPointArray</a> a(10); + <a href="tqpointarray.html">TQPointArray</a> b; b = painter.xForm(a, 2, 4); // b.<a href="tqmemarray.html#size">size</a>() == 4 b = painter.xForm(a, 2, -1); // b.<a href="tqmemarray.html#size">size</a>() == 8 </pre> -<p> <p>See also <a href="#xFormDev">xFormDev</a>() and <a href="ntqwmatrix.html#map">TQWMatrix::map</a>(). +<p> <p>See also <a href="#xFormDev">xFormDev</a>() and <a href="tqwmatrix.html#map">TQWMatrix::map</a>(). -<h3 class=fn><a href="ntqrect.html">TQRect</a> <a name="xFormDev"></a>TQPainter::xFormDev ( const <a href="ntqrect.html">TQRect</a> & rd ) const +<h3 class=fn><a href="tqrect.html">TQRect</a> <a name="xFormDev"></a>TQPainter::xFormDev ( const <a href="tqrect.html">TQRect</a> & rd ) const </h3> Returns the rectangle <em>rd</em> transformed from device coordinates to model coordinates. <p> If world transformation is enabled and rotation or shearing is used, then the bounding rectangle is returned. -<p> <p>See also <a href="#xForm">xForm</a>() and <a href="ntqwmatrix.html#map">TQWMatrix::map</a>(). +<p> <p>See also <a href="#xForm">xForm</a>() and <a href="tqwmatrix.html#map">TQWMatrix::map</a>(). -<h3 class=fn><a href="ntqpoint.html">TQPoint</a> <a name="xFormDev-2"></a>TQPainter::xFormDev ( const <a href="ntqpoint.html">TQPoint</a> & pd ) const +<h3 class=fn><a href="tqpoint.html">TQPoint</a> <a name="xFormDev-2"></a>TQPainter::xFormDev ( const <a href="tqpoint.html">TQPoint</a> & pd ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Returns the point <em>pd</em> transformed from device coordinates to model coordinates. -<p> <p>See also <a href="#xForm">xForm</a>() and <a href="ntqwmatrix.html#map">TQWMatrix::map</a>(). +<p> <p>See also <a href="#xForm">xForm</a>() and <a href="tqwmatrix.html#map">TQWMatrix::map</a>(). -<h3 class=fn><a href="ntqpointarray.html">TQPointArray</a> <a name="xFormDev-3"></a>TQPainter::xFormDev ( const <a href="ntqpointarray.html">TQPointArray</a> & ad ) const +<h3 class=fn><a href="tqpointarray.html">TQPointArray</a> <a name="xFormDev-3"></a>TQPainter::xFormDev ( const <a href="tqpointarray.html">TQPointArray</a> & ad ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Returns the point array <em>ad</em> transformed from device coordinates to model coordinates. -<p> <p>See also <a href="#xForm">xForm</a>() and <a href="ntqwmatrix.html#map">TQWMatrix::map</a>(). +<p> <p>See also <a href="#xForm">xForm</a>() and <a href="tqwmatrix.html#map">TQWMatrix::map</a>(). -<h3 class=fn><a href="ntqpointarray.html">TQPointArray</a> <a name="xFormDev-4"></a>TQPainter::xFormDev ( const <a href="ntqpointarray.html">TQPointArray</a> & ad, int index, int npoints ) const +<h3 class=fn><a href="tqpointarray.html">TQPointArray</a> <a name="xFormDev-4"></a>TQPainter::xFormDev ( const <a href="tqpointarray.html">TQPointArray</a> & ad, int index, int npoints ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Returns the point array <em>ad</em> transformed from device coordinates @@ -1497,13 +1497,13 @@ last point in the array are transformed. were transformed. <p> Example: <pre> - <a href="ntqpointarray.html">TQPointArray</a> a(10); - <a href="ntqpointarray.html">TQPointArray</a> b; + <a href="tqpointarray.html">TQPointArray</a> a(10); + <a href="tqpointarray.html">TQPointArray</a> b; b = painter.xFormDev(a, 1, 3); // b.<a href="tqmemarray.html#size">size</a>() == 3 b = painter.xFormDev(a, 1, -1); // b.<a href="tqmemarray.html#size">size</a>() == 9 </pre> -<p> <p>See also <a href="#xForm">xForm</a>() and <a href="ntqwmatrix.html#map">TQWMatrix::map</a>(). +<p> <p>See also <a href="#xForm">xForm</a>() and <a href="tqwmatrix.html#map">TQWMatrix::map</a>(). <hr><h2>Related Functions</h2> <h3 class=fn>void <a name="qDrawPlainRect"></a>qDrawPlainRect ( <a href="tqpainter.html">TQPainter</a> * p, int x, int y, int w, int h, const <a href="tqcolor.html">TQColor</a> & c, int lineWidth, const <a href="tqbrush.html">TQBrush</a> * fill ) |