diff options
Diffstat (limited to 'doc/man/man3/tqcanvas.3qt')
-rw-r--r-- | doc/man/man3/tqcanvas.3qt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/man/man3/tqcanvas.3qt b/doc/man/man3/tqcanvas.3qt index 2a44079d3..8eb287d15 100644 --- a/doc/man/man3/tqcanvas.3qt +++ b/doc/man/man3/tqcanvas.3qt @@ -115,7 +115,7 @@ Inherits TQObject. .BI "TQCanvasItemList \fBcollisions\fR ( const TQPointArray & chunklist, const TQCanvasItem * item, bool exact ) const" .br .ti -1c -.BI "void \fBdrawArea\fR ( const TQRect & clip, TQPainter * painter, bool dbuf = FALSE )" +.BI "void \fBdrawArea\fR ( const TQRect & clip, TQPainter * 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. TQCanvasEllipse, TQCanvasLine, TQCanvasPolygon, TQCanvasPolygonalItem, TQCanvasRectangle, TQCanvasSpline, TQCanvasSprite and TQCanvasText. You can subclass to create your own canvas items; TQCanvasPolygonalItem 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 TQCanvas does not inherit from TQWidget, even though it has some funct .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 TQCanvasItem::setCanvas(). .PP -Canvas items are movable (and in the case of TQCanvasSprites, animated) objects that inherit TQCanvasItem. 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 TQCanvasItem::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 TQCanvasSprites, animated) objects that inherit TQCanvasItem. 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 TQCanvasItem::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 TQCanvasItem::move(). The advance() function moves all TQCanvasItem::animated() canvas items and setAdvancePeriod() makes TQCanvas move them automatically on a periodic basis. In the context of the TQCanvas classes, to `animate' a canvas item is to set it in motion, i.e. using TQCanvasItem::setVelocity(). Animation of a canvas item itself, i.e. items which change over time, is enabled by calling TQCanvasSprite::setFrameAnimation(), or more generally by subclassing and reimplementing TQCanvasItem::advance(). To detect collisions use one of the TQCanvasItem::collisions() functions. .PP @@ -270,11 +270,11 @@ Returns a list of items which collide with the rectangle \fIr\fR. The list is or .SH "TQCanvasItemList TQCanvas::collisions ( const TQPointArray & chunklist, const TQCanvasItem * 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 TQCanvasItem::collisions() function. -.SH "void TQCanvas::drawArea ( const TQRect & clip, TQPainter * 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 TQCanvas::drawArea ( const TQRect & clip, TQPainter * 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 TQCanvas::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 TQCanvas::onCanvas ( const TQPoint & 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 "TQRect TQCanvas::rect () const" @@ -355,7 +355,7 @@ See also backgroundPixmap(), setBackgroundColor(), and setTiles(). .SH "void TQCanvas::setChanged ( const TQRect & 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 TQCanvas::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 TQCanvas::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 TQCanvas::validChunk ( const TQPoint & 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 TQCanvas::width () const" |