summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqpainter.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-31 13:38:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-31 13:43:03 +0900
commit6e4a70d41a2636ce99a1da7b6827ac5685ed3186 (patch)
treeb029ebf1d5be6d1ac0ee361e7bfb68a7dbed0eec /doc/man/man3/tqpainter.3qt
parent81ade129093a279e6537db25710583fd2bba9427 (diff)
downloadtqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.tar.gz
tqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.zip
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked and manually edited from commit 6dd781c483eea56f51ae0eff47d857976b5d0f0d)
Diffstat (limited to 'doc/man/man3/tqpainter.3qt')
-rw-r--r--doc/man/man3/tqpainter.3qt66
1 files changed, 33 insertions, 33 deletions
diff --git a/doc/man/man3/tqpainter.3qt b/doc/man/man3/tqpainter.3qt
index 7072d00f2..3eb0d3a87 100644
--- a/doc/man/man3/tqpainter.3qt
+++ b/doc/man/man3/tqpainter.3qt
@@ -24,19 +24,19 @@ Inherited by QDirectPainter.
.BI "\fBQPainter\fR ()"
.br
.ti -1c
-.BI "\fBQPainter\fR ( const QPaintDevice * pd, bool unclipped = FALSE )"
+.BI "\fBQPainter\fR ( const QPaintDevice * pd, bool unclipped = false )"
.br
.ti -1c
-.BI "\fBQPainter\fR ( const QPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = FALSE )"
+.BI "\fBQPainter\fR ( const QPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = false )"
.br
.ti -1c
.BI "\fB~QPainter\fR ()"
.br
.ti -1c
-.BI "bool \fBbegin\fR ( const QPaintDevice * pd, bool unclipped = FALSE )"
+.BI "bool \fBbegin\fR ( const QPaintDevice * pd, bool unclipped = false )"
.br
.ti -1c
-.BI "bool \fBbegin\fR ( const QPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = FALSE )"
+.BI "bool \fBbegin\fR ( const QPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = false )"
.br
.ti -1c
.BI "bool \fBend\fR ()"
@@ -159,7 +159,7 @@ Inherited by QDirectPainter.
.BI "const QWMatrix & \fBworldMatrix\fR () const"
.br
.ti -1c
-.BI "void \fBsetWorldMatrix\fR ( const QWMatrix & m, bool combine = FALSE )"
+.BI "void \fBsetWorldMatrix\fR ( const QWMatrix & m, bool combine = false )"
.br
.ti -1c
.BI "void saveWorldMatrix () \fI(obsolete)\fR"
@@ -306,7 +306,7 @@ Inherited by QDirectPainter.
.BI "void \fBdrawPolyline\fR ( const QPointArray & a, int index = 0, int npoints = -1 )"
.br
.ti -1c
-.BI "void \fBdrawPolygon\fR ( const QPointArray & a, bool winding = FALSE, int index = 0, int npoints = -1 )"
+.BI "void \fBdrawPolygon\fR ( const QPointArray & a, bool winding = false, int index = 0, int npoints = -1 )"
.br
.ti -1c
.BI "void \fBdrawConvexPolygon\fR ( const QPointArray & pa, int index = 0, int npoints = -1 )"
@@ -522,7 +522,7 @@ The most common functions used are scale(), rotate(), translate() and shear(), a
.PP
setViewport() sets the rectangle on which QPainter operates. The default is the entire device, which is usually fine, except on printers. setWindow() sets the coordinate system, that is, the rectangle that maps to viewport(). What's drawn inside the window() ends up being inside the viewport(). The window's default is the same as the viewport, and if you don't use the transformations, they are optimized away, gaining another little bit of speed.
.PP
-After all the coordinate transformation is done, QPainter can clip the drawing to an arbitrary rectangle or region. hasClipping() is TRUE if QPainter clips, and clipRegion() returns the clip region. You can set it using either setClipRegion() or setClipRect(). Note that the clipping can be slow. It's all system-dependent, but as a rule of thumb, you can assume that drawing speed is inversely proportional to the number of rectangles in the clip region.
+After all the coordinate transformation is done, QPainter can clip the drawing to an arbitrary rectangle or region. hasClipping() is true if QPainter clips, and clipRegion() returns the clip region. You can set it using either setClipRegion() or setClipRect(). Note that the clipping can be slow. It's all system-dependent, but as a rule of thumb, you can assume that drawing speed is inversely proportional to the number of rectangles in the clip region.
.PP
After QPainter's clipping, the paint device may also clip. For example, most widgets clip away the pixels used by child widgets, and most printers clip away an area near the edges of the paper. This additional clipping is not reflected by the return value of clipRegion() or hasClipping().
.PP
@@ -561,8 +561,8 @@ Constructs a painter.
Notice that all painter settings (setPen, setBrush etc.) are reset to default values when begin() is called.
.PP
See also begin() and end().
-.SH "QPainter::QPainter ( const QPaintDevice * pd, bool unclipped = FALSE )"
-Constructs a painter that begins painting the paint device \fIpd\fR immediately. Depending on the underlying graphic system the painter will paint over children of the paintdevice if \fIunclipped\fR is TRUE.
+.SH "QPainter::QPainter ( const QPaintDevice * pd, bool unclipped = false )"
+Constructs a painter that begins painting the paint device \fIpd\fR immediately. Depending on the underlying graphic system the painter will paint over children of the paintdevice if \fIunclipped\fR is true.
.PP
This constructor is convenient for short-lived painters, e.g. in a paint event and should be used only once. The constructor calls begin() for you and the QPainter destructor automatically calls end().
.PP
@@ -605,8 +605,8 @@ The same example using this constructor:
Since the constructor cannot provide feedback when the initialization of the painter failed you should rather use begin() and end() to paint on external devices, e.g. printers.
.PP
See also begin() and end().
-.SH "QPainter::QPainter ( const QPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = FALSE )"
-Constructs a painter that begins painting the paint device \fIpd\fR immediately, with the default arguments taken from \fIcopyAttributes\fR. The painter will paint over children of the paint device if \fIunclipped\fR is TRUE (although this is not supported on all platforms).
+.SH "QPainter::QPainter ( const QPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = false )"
+Constructs a painter that begins painting the paint device \fIpd\fR immediately, with the default arguments taken from \fIcopyAttributes\fR. The painter will paint over children of the paint device if \fIunclipped\fR is true (although this is not supported on all platforms).
.PP
See also begin().
.SH "QPainter::~QPainter ()"
@@ -619,8 +619,8 @@ See also setBackgroundColor() and TQColor.
Returns the current background mode.
.PP
See also setBackgroundMode() and BGMode.
-.SH "bool QPainter::begin ( const QPaintDevice * pd, bool unclipped = FALSE )"
-Begins painting the paint device \fIpd\fR and returns TRUE if successful; otherwise returns FALSE. If \fIunclipped\fR is TRUE, the painting will not be clipped at the paint device's boundaries, (although this is not supported by all platforms).
+.SH "bool QPainter::begin ( const QPaintDevice * pd, bool unclipped = false )"
+Begins painting the paint device \fIpd\fR and returns true if successful; otherwise returns false. If \fIunclipped\fR is true, the painting will not be clipped at the paint device's boundaries, (although this is not supported by all platforms).
.PP
The errors that can occur are serious problems, such as these:
.PP
@@ -648,10 +648,10 @@ See also end() and flush().
.PP
Examples:
.)l aclock/aclock.cpp, desktop/desktop.cpp, drawdemo/drawdemo.cpp, hello/hello.cpp, picture/picture.cpp, t10/cannon.cpp, and xform/xform.cpp.
-.SH "bool QPainter::begin ( const QPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = FALSE )"
+.SH "bool QPainter::begin ( const QPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = false )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-This version opens the painter on a paint device \fIpd\fR and sets the initial pen, background color and font from \fIcopyAttributes\fR, painting over the paint device's children when \fIunclipped\fR is TRUE. This is equivalent to:
+This version opens the painter on a paint device \fIpd\fR and sets the initial pen, background color and font from \fIcopyAttributes\fR, painting over the paint device's children when \fIunclipped\fR is true. This is equivalent to:
.PP
.nf
.br
@@ -917,14 +917,14 @@ Draws/plots an array of points, \fIa\fR, using the current pen.
If \fIindex\fR is non-zero (the default is zero) only points from \fIindex\fR are drawn. If \fInpoints\fR is negative (the default) the rest of the points from \fIindex\fR are drawn. If \fInpoints\fR is zero or greater, \fInpoints\fR points are drawn.
.PP
\fBWarning:\fR On X11, coordinates that do not fit into 16-bit signed values are truncated. This limitation is expected to go away in TQt 4.
-.SH "void QPainter::drawPolygon ( const QPointArray & a, bool winding = FALSE, int index = 0, int npoints = -1 )"
+.SH "void QPainter::drawPolygon ( const QPointArray & a, bool winding = false, int index = 0, int npoints = -1 )"
Draws the polygon defined by the \fInpoints\fR points in \fIa\fR starting at \fIa[index]\fR. (\fIindex\fR defaults to 0.)
.PP
If \fInpoints\fR is -1 (the default) all points until the end of the array are used (i.e. a.size()-index line segments define the polygon).
.PP
The first point is always connected to the last point.
.PP
-The polygon is filled with the current brush(). If \fIwinding\fR is TRUE, the polygon is filled using the winding fill algorithm. If \fIwinding\fR is FALSE, the polygon is filled using the even-odd (alternative) fill algorithm.
+The polygon is filled with the current brush(). If \fIwinding\fR is true, the polygon is filled using the winding fill algorithm. If \fIwinding\fR is false, the polygon is filled using the even-odd (alternative) fill algorithm.
.PP
\fBWarning:\fR On X11, coordinates that do not fit into 16-bit signed values are truncated. This limitation is expected to go away in TQt 4.
.PP
@@ -1131,21 +1131,21 @@ Examples:
.SH "HDC QPainter::handle () const"
Returns the platform-dependent handle used for drawing. Using this function is not portable.
.SH "bool QPainter::hasClipping () const"
-Returns TRUE if clipping has been set; otherwise returns FALSE.
+Returns true if clipping has been set; otherwise returns false.
.PP
See also setClipping().
.PP
Example: themes/wood.cpp.
.SH "bool QPainter::hasViewXForm () const"
-Returns TRUE if view transformation is enabled; otherwise returns FALSE.
+Returns true if view transformation is enabled; otherwise returns false.
.PP
See also setViewXForm() and xForm().
.SH "bool QPainter::hasWorldXForm () const"
-Returns TRUE if world transformation is enabled; otherwise returns FALSE.
+Returns true if world transformation is enabled; otherwise returns false.
.PP
See also setWorldXForm().
.SH "bool QPainter::isActive () const"
-Returns TRUE if the painter is active painting, i.e. begin() has been called and end() has not yet been called; otherwise returns FALSE.
+Returns true if the painter is active painting, i.e. begin() has been called and end() has not yet been called; otherwise returns false.
.PP
See also QPaintDevice::paintingActive().
.PP
@@ -1303,7 +1303,7 @@ See also setClipRect(), clipRegion(), setClipping(), and CoordinateMode.
Examples:
.)l qfd/fontdisplayer.cpp and themes/wood.cpp.
.SH "void QPainter::setClipping ( bool enable )"
-Enables clipping if \fIenable\fR is TRUE, or disables clipping if \fIenable\fR is FALSE.
+Enables clipping if \fIenable\fR is true, or disables clipping if \fIenable\fR is false.
.PP
See also hasClipping(), setClipRect(), and setClipRegion().
.PP
@@ -1357,7 +1357,7 @@ A value of 0 (the default) implies a tabstop setting of 8 times the width of the
.PP
See also tabStops(), setTabArray(), drawText(), and fontMetrics().
.SH "void QPainter::setViewXForm ( bool enable )"
-Enables view transformations if \fIenable\fR is TRUE, or disables view transformations if \fIenable\fR is FALSE.
+Enables view transformations if \fIenable\fR is true, or disables view transformations if \fIenable\fR is false.
.PP
See also hasViewXForm(), setWindow(), setViewport(), setWorldMatrix(), setWorldXForm(), and xForm().
.SH "void QPainter::setViewport ( int x, int y, int w, int h )"
@@ -1389,12 +1389,12 @@ Examples:
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Sets the painter's window to rectangle \fIr\fR.
-.SH "void QPainter::setWorldMatrix ( const QWMatrix & m, bool combine = FALSE )"
+.SH "void QPainter::setWorldMatrix ( const QWMatrix & m, bool combine = false )"
Sets the world transformation matrix to \fIm\fR and enables world transformation.
.PP
-If \fIcombine\fR is TRUE, then \fIm\fR is combined with the current transformation matrix, otherwise \fIm\fR replaces the current transformation matrix.
+If \fIcombine\fR is true, then \fIm\fR is combined with the current transformation matrix, otherwise \fIm\fR replaces the current transformation matrix.
.PP
-If \fIm\fR is the identity matrix and \fIcombine\fR is FALSE, this function calls setWorldXForm(FALSE). (The identity matrix is the matrix where QWMatrix::m11() and QWMatrix::m22() are 1.0 and the rest are 0.0.)
+If \fIm\fR is the identity matrix and \fIcombine\fR is false, this function calls setWorldXForm(false). (The identity matrix is the matrix where QWMatrix::m11() and QWMatrix::m22() are 1.0 and the rest are 0.0.)
.PP
World transformations are applied after the view transformations (i.e. window and viewport).
.PP
@@ -1420,7 +1420,7 @@ They operate on the painter's worldMatrix() and are implemented like this:
.br
m.rotate( a );
.br
- setWorldMatrix( m, TRUE );
+ setWorldMatrix( m, true );
.br
}
.br
@@ -1435,7 +1435,7 @@ See also worldMatrix(), setWorldXForm(), setWindow(), setViewport(), setViewXFor
Examples:
.)l drawdemo/drawdemo.cpp and xform/xform.cpp.
.SH "void QPainter::setWorldXForm ( bool enable )"
-Enables world transformations if \fIenable\fR is TRUE, or disables world transformations if \fIenable\fR is FALSE. The world transformation matrix is not changed.
+Enables world transformations if \fIenable\fR is true, or disables world transformations if \fIenable\fR is false. The world transformation matrix is not changed.
.PP
See also setWorldMatrix(), setWindow(), setViewport(), setViewXForm(), and xForm().
.SH "void QPainter::shear ( double sh, double sv )"
@@ -1599,7 +1599,7 @@ Nothing is drawn if \fIy1\fR != \fIy2\fR and \fIx1\fR != \fIx2\fR (i.e. the line
.PP
The color group argument \fIg\fR specifies the shading colors (light, dark and middle colors).
.PP
-The line appears sunken if \fIsunken\fR is TRUE, or raised if \fIsunken\fR is FALSE.
+The line appears sunken if \fIsunken\fR is true, or raised if \fIsunken\fR is false.
.PP
The \fIlineWidth\fR argument specifies the line width for each of the lines. It is not the total line width.
.PP
@@ -1617,7 +1617,7 @@ Draws the shaded panel specified by (\fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR) using t
.PP
The color group argument \fIg\fR specifies the shading colors (light, dark and middle colors).
.PP
-The panel appears sunken if \fIsunken\fR is TRUE, or raised if \fIsunken\fR is FALSE.
+The panel appears sunken if \fIsunken\fR is true, or raised if \fIsunken\fR is false.
.PP
The \fIlineWidth\fR argument specifies the line width.
.PP
@@ -1635,7 +1635,7 @@ Draws the shaded rectangle specified by (\fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR) usi
.PP
The color group argument \fIg\fR specifies the shading colors (light, dark and middle colors).
.PP
-The rectangle appears sunken if \fIsunken\fR is TRUE, or raised if \fIsunken\fR is FALSE.
+The rectangle appears sunken if \fIsunken\fR is true, or raised if \fIsunken\fR is false.
.PP
The \fIlineWidth\fR argument specifies the line width for each of the lines. It is not the total line width.
.PP
@@ -1655,7 +1655,7 @@ Draws the Windows-style button specified by (\fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR)
.PP
The color group argument \fIg\fR specifies the shading colors (light, dark and middle colors).
.PP
-The button appears sunken if \fIsunken\fR is TRUE, or raised if \fIsunken\fR is FALSE.
+The button appears sunken if \fIsunken\fR is true, or raised if \fIsunken\fR is false.
.PP
The line width is 2 pixels.
.PP
@@ -1671,7 +1671,7 @@ Draws the Windows-style panel specified by (\fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR)
.PP
The color group argument \fIg\fR specifies the shading colors.
.PP
-The panel appears sunken if \fIsunken\fR is TRUE, or raised if \fIsunken\fR is FALSE.
+The panel appears sunken if \fIsunken\fR is true, or raised if \fIsunken\fR is false.
.PP
The line width is 2 pixels.
.PP