summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqcanvas.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/tqcanvas.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/tqcanvas.3qt')
-rw-r--r--doc/man/man3/tqcanvas.3qt22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/man/man3/tqcanvas.3qt b/doc/man/man3/tqcanvas.3qt
index dc43b9923..974ebf721 100644
--- a/doc/man/man3/tqcanvas.3qt
+++ b/doc/man/man3/tqcanvas.3qt
@@ -115,7 +115,7 @@ Inherits TQObject.
.BI "QCanvasItemList \fBcollisions\fR ( const QPointArray & chunklist, const QCanvasItem * item, bool exact ) const"
.br
.ti -1c
-.BI "void \fBdrawArea\fR ( const QRect & clip, QPainter * painter, bool dbuf = FALSE )"
+.BI "void \fBdrawArea\fR ( const QRect & clip, QPainter * painter, bool dbuf = false )"
.br
.ti -1c
.BI "virtual void \fBsetAdvancePeriod\fR ( int ms )"
@@ -160,7 +160,7 @@ The canvas is optimized for large numbers of items, particularly where only a sm
.PP
Qt provides a rich set of canvas item classes, e.g. QCanvasEllipse, QCanvasLine, QCanvasPolygon, QCanvasPolygonalItem, QCanvasRectangle, QCanvasSpline, QCanvasSprite and QCanvasText. You can subclass to create your own canvas items; QCanvasPolygonalItem is the most common base class used for this purpose.
.PP
-Items appear on the canvas after their show() function has been called (or setVisible(TRUE)), and \fIafter\fR update() has been called. The canvas only shows items that are visible, and then only if update() is called. (By default the canvas is white and so are canvas items, so if nothing appears try changing colors.)
+Items appear on the canvas after their show() function has been called (or setVisible(true)), and \fIafter\fR update() has been called. The canvas only shows items that are visible, and then only if update() is called. (By default the canvas is white and so are canvas items, so if nothing appears try changing colors.)
.PP
If you created the canvas without passing a width and height to the constructor you must also call resize().
.PP
@@ -192,7 +192,7 @@ Note that QCanvas does not inherit from TQWidget, even though it has some functi
.PP
Canvas items are added to a canvas by constructing them and passing the canvas to the canvas item's constructor. An item can be moved to a different canvas using QCanvasItem::setCanvas().
.PP
-Canvas items are movable (and in the case of QCanvasSprites, animated) objects that inherit QCanvasItem. Each canvas item has a position on the canvas (x, y coordinates) and a height (z coordinate), all of which are held as floating-point numbers. Moving canvas items also have x and y velocities. It's possible for a canvas item to be outside the canvas (for example QCanvasItem::x() is greater than width()). When a canvas item is off the canvas, onCanvas() returns FALSE and the canvas disregards the item. (Canvas items off the canvas do not slow down any of the common operations on the canvas.)
+Canvas items are movable (and in the case of QCanvasSprites, animated) objects that inherit QCanvasItem. Each canvas item has a position on the canvas (x, y coordinates) and a height (z coordinate), all of which are held as floating-point numbers. Moving canvas items also have x and y velocities. It's possible for a canvas item to be outside the canvas (for example QCanvasItem::x() is greater than width()). When a canvas item is off the canvas, onCanvas() returns false and the canvas disregards the item. (Canvas items off the canvas do not slow down any of the common operations on the canvas.)
.PP
Canvas items can be moved with QCanvasItem::move(). The advance() function moves all QCanvasItem::animated() canvas items and setAdvancePeriod() makes QCanvas move them automatically on a periodic basis. In the context of the QCanvas classes, to `animate' a canvas item is to set it in motion, i.e. using QCanvasItem::setVelocity(). Animation of a canvas item itself, i.e. items which change over time, is enabled by calling QCanvasSprite::setFrameAnimation(), or more generally by subclassing and reimplementing QCanvasItem::advance(). To detect collisions use one of the QCanvasItem::collisions() functions.
.PP
@@ -270,11 +270,11 @@ Returns a list of items which collide with the rectangle \fIr\fR. The list is or
.SH "QCanvasItemList QCanvas::collisions ( const QPointArray & chunklist, const QCanvasItem * item, bool exact ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Returns a list of canvas items which intersect with the chunks listed in \fIchunklist\fR, excluding \fIitem\fR. If \fIexact\fR is TRUE, only those which actually collide with \fIitem\fR are returned; otherwise canvas items are included just for being in the chunks.
+Returns a list of canvas items which intersect with the chunks listed in \fIchunklist\fR, excluding \fIitem\fR. If \fIexact\fR is true, only those which actually collide with \fIitem\fR are returned; otherwise canvas items are included just for being in the chunks.
.PP
This is a utility function mainly used to implement the simpler QCanvasItem::collisions() function.
-.SH "void QCanvas::drawArea ( const QRect & clip, QPainter * painter, bool dbuf = FALSE )"
-Paints all canvas items that are in the area \fIclip\fR to \fIpainter\fR, using double-buffering if \fIdbuf\fR is TRUE.
+.SH "void QCanvas::drawArea ( const QRect & clip, QPainter * painter, bool dbuf = false )"
+Paints all canvas items that are in the area \fIclip\fR to \fIpainter\fR, using double-buffering if \fIdbuf\fR is true.
.PP
e.g. to print the canvas to a printer:
.PP
@@ -310,13 +310,13 @@ Returns the height of the canvas, in pixels.
.PP
Example: canvas/canvas.cpp.
.SH "bool QCanvas::onCanvas ( int x, int y ) const"
-Returns TRUE if the pixel position (\fIx\fR, \fIy\fR) is on the canvas; otherwise returns FALSE.
+Returns true if the pixel position (\fIx\fR, \fIy\fR) is on the canvas; otherwise returns false.
.PP
See also validChunk().
.SH "bool QCanvas::onCanvas ( const QPoint & p ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Returns TRUE if the pixel position \fIp\fR is on the canvas; otherwise returns FALSE.
+Returns true if the pixel position \fIp\fR is on the canvas; otherwise returns false.
.PP
See also validChunk().
.SH "QRect QCanvas::rect () const"
@@ -355,7 +355,7 @@ See also backgroundPixmap(), setBackgroundColor(), and setTiles().
.SH "void QCanvas::setChanged ( const QRect & area )\fC [virtual]\fR"
Marks \fIarea\fR as changed. This \fIarea\fR will be redrawn in all views that are showing it when update() is called next.
.SH "void QCanvas::setDoubleBuffering ( bool y )\fC [virtual]\fR"
-If \fIy\fR is TRUE (the default) double-buffering is switched on; otherwise double-buffering is switched off.
+If \fIy\fR is true (the default) double-buffering is switched on; otherwise double-buffering is switched off.
.PP
Turning off double-buffering causes the redrawn areas to flicker a little and also gives a (usually small) performance improvement.
.PP
@@ -417,13 +417,13 @@ Repaints changed areas in all views of the canvas.
.PP
See also advance().
.SH "bool QCanvas::validChunk ( int x, int y ) const"
-Returns TRUE if the chunk position (\fIx\fR, \fIy\fR) is on the canvas; otherwise returns FALSE.
+Returns true if the chunk position (\fIx\fR, \fIy\fR) is on the canvas; otherwise returns false.
.PP
See also onCanvas().
.SH "bool QCanvas::validChunk ( const QPoint & p ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Returns TRUE if the chunk position \fIp\fR is on the canvas; otherwise returns FALSE.
+Returns true if the chunk position \fIp\fR is on the canvas; otherwise returns false.
.PP
See also onCanvas().
.SH "int QCanvas::width () const"