diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-26 11:44:58 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-30 14:26:34 +0900 |
| commit | 6dd781c483eea56f51ae0eff47d857976b5d0f0d (patch) | |
| tree | 0ddd4408e142ae6f8b13d3538359abd127988b2f /doc/man/man3/tqpainter.3qt | |
| parent | ff56b6fec14de4cd4b89d5b322531671d200b6e0 (diff) | |
| download | tqt-6dd781c483eea56f51ae0eff47d857976b5d0f0d.tar.gz tqt-6dd781c483eea56f51ae0eff47d857976b5d0f0d.zip | |
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqpainter.3qt')
| -rw-r--r-- | doc/man/man3/tqpainter.3qt | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/doc/man/man3/tqpainter.3qt b/doc/man/man3/tqpainter.3qt index b223bea72..1d9444a8e 100644 --- a/doc/man/man3/tqpainter.3qt +++ b/doc/man/man3/tqpainter.3qt @@ -22,19 +22,19 @@ Inherits Qt. .BI "\fBTQPainter\fR ()" .br .ti -1c -.BI "\fBTQPainter\fR ( const TQPaintDevice * pd, bool unclipped = FALSE )" +.BI "\fBTQPainter\fR ( const TQPaintDevice * pd, bool unclipped = false )" .br .ti -1c -.BI "\fBTQPainter\fR ( const TQPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = FALSE )" +.BI "\fBTQPainter\fR ( const TQPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = false )" .br .ti -1c .BI "\fB~TQPainter\fR ()" .br .ti -1c -.BI "bool \fBbegin\fR ( const TQPaintDevice * pd, bool unclipped = FALSE )" +.BI "bool \fBbegin\fR ( const TQPaintDevice * pd, bool unclipped = false )" .br .ti -1c -.BI "bool \fBbegin\fR ( const TQPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = FALSE )" +.BI "bool \fBbegin\fR ( const TQPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = false )" .br .ti -1c .BI "bool \fBend\fR ()" @@ -157,7 +157,7 @@ Inherits Qt. .BI "const TQWMatrix & \fBworldMatrix\fR () const" .br .ti -1c -.BI "void \fBsetWorldMatrix\fR ( const TQWMatrix & m, bool combine = FALSE )" +.BI "void \fBsetWorldMatrix\fR ( const TQWMatrix & m, bool combine = false )" .br .ti -1c .BI "void saveWorldMatrix () \fI(obsolete)\fR" @@ -304,7 +304,7 @@ Inherits Qt. .BI "void \fBdrawPolyline\fR ( const TQPointArray & a, int index = 0, int npoints = -1 )" .br .ti -1c -.BI "void \fBdrawPolygon\fR ( const TQPointArray & a, bool winding = FALSE, int index = 0, int npoints = -1 )" +.BI "void \fBdrawPolygon\fR ( const TQPointArray & a, bool winding = false, int index = 0, int npoints = -1 )" .br .ti -1c .BI "void \fBdrawConvexPolygon\fR ( const TQPointArray & pa, int index = 0, int npoints = -1 )" @@ -520,7 +520,7 @@ The most common functions used are scale(), rotate(), translate() and shear(), a .PP setViewport() sets the rectangle on which TQPainter 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, TQPainter can clip the drawing to an arbitrary rectangle or region. hasClipping() is TRUE if TQPainter 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, TQPainter can clip the drawing to an arbitrary rectangle or region. hasClipping() is true if TQPainter 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 TQPainter'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 @@ -559,8 +559,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 "TQPainter::TQPainter ( const TQPaintDevice * 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 "TQPainter::TQPainter ( const TQPaintDevice * 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 TQPainter destructor automatically calls end(). .PP @@ -603,8 +603,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 "TQPainter::TQPainter ( const TQPaintDevice * 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 "TQPainter::TQPainter ( const TQPaintDevice * 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 "TQPainter::~TQPainter ()" @@ -617,8 +617,8 @@ See also setBackgroundColor() and TQColor. Returns the current background mode. .PP See also setBackgroundMode() and BGMode. -.SH "bool TQPainter::begin ( const TQPaintDevice * 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 TQPainter::begin ( const TQPaintDevice * 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 @@ -646,10 +646,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 TQPainter::begin ( const TQPaintDevice * pd, const TQWidget * copyAttributes, bool unclipped = FALSE )" +.SH "bool TQPainter::begin ( const TQPaintDevice * 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 @@ -915,14 +915,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 TQPainter::drawPolygon ( const TQPointArray & a, bool winding = FALSE, int index = 0, int npoints = -1 )" +.SH "void TQPainter::drawPolygon ( const TQPointArray & 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 @@ -1129,21 +1129,21 @@ Examples: .SH "HDC TQPainter::handle () const" Returns the platform-dependent handle used for drawing. Using this function is not portable. .SH "bool TQPainter::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 TQPainter::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 TQPainter::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 TQPainter::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 TQPaintDevice::paintingActive(). .PP @@ -1301,7 +1301,7 @@ See also setClipRect(), clipRegion(), setClipping(), and CoordinateMode. Examples: .)l qfd/fontdisplayer.cpp and themes/wood.cpp. .SH "void TQPainter::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 @@ -1355,7 +1355,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 TQPainter::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 TQPainter::setViewport ( int x, int y, int w, int h )" @@ -1387,12 +1387,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 TQPainter::setWorldMatrix ( const TQWMatrix & m, bool combine = FALSE )" +.SH "void TQPainter::setWorldMatrix ( const TQWMatrix & 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 TQWMatrix::m11() and TQWMatrix::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 TQWMatrix::m11() and TQWMatrix::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 @@ -1418,7 +1418,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 @@ -1433,7 +1433,7 @@ See also worldMatrix(), setWorldXForm(), setWindow(), setViewport(), setViewXFor Examples: .)l drawdemo/drawdemo.cpp and xform/xform.cpp. .SH "void TQPainter::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 TQPainter::shear ( double sh, double sv )" @@ -1597,7 +1597,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 @@ -1615,7 +1615,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 @@ -1633,7 +1633,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 @@ -1653,7 +1653,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 @@ -1669,7 +1669,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 |
