diff options
Diffstat (limited to 'doc/man/man3/tqcanvasitem.3qt')
-rw-r--r-- | doc/man/man3/tqcanvasitem.3qt | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/man/man3/tqcanvasitem.3qt b/doc/man/man3/tqcanvasitem.3qt index c54d0704a..64321e2db 100644 --- a/doc/man/man3/tqcanvasitem.3qt +++ b/doc/man/man3/tqcanvasitem.3qt @@ -154,7 +154,7 @@ A variety of TQCanvasItem subclasses provide immediately usable behaviour. This .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 setCanvas(). .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. If you created the canvas without passing a width and height to the constructor you'll also need to call resize(). Since the canvas background defaults to white and canvas items default to white, you may need to change colors to see your items. +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. If you created the canvas without passing a width and height to the constructor you'll also need to call resize(). Since the canvas background defaults to white and canvas items default to white, you may need to change colors to see your items. .PP A TQCanvasItem object can be moved in the x(), y() and z() dimensions using functions such as move(), moveBy(), setX(), setY() and setZ(). A canvas item can be set in motion, `animated', using setAnimated() and given a velocity in the x and y directions with setXVelocity() and setYVelocity() -- the same effect can be achieved by calling setVelocity(). Use the collidesWith() function to see if the canvas item will collide on the \fInext\fR advance(1) and use collisions() to see what collisions have occurred. .PP @@ -215,7 +215,7 @@ Example: canvas/canvas.cpp. .PP Reimplemented in TQCanvasSprite. .SH "bool TQCanvasItem::animated () const" -Returns TRUE if the canvas item is in motion; otherwise returns FALSE. +Returns true if the canvas item is in motion; otherwise returns false. .PP See also setVelocity() and setAnimated(). .SH "TQRect TQCanvasItem::boundingRect () const\fC [pure virtual]\fR" @@ -231,7 +231,7 @@ See also boundingRect(). .SH "TQCanvas * TQCanvasItem::canvas () const" Returns the canvas containing the canvas item. .SH "bool TQCanvasItem::collidesWith ( const TQCanvasItem * other ) const\fC [pure virtual]\fR" -Returns TRUE if the canvas item will collide with the \fIother\fR item \fIafter\fR they have moved by their current velocities; otherwise returns FALSE. +Returns true if the canvas item will collide with the \fIother\fR item \fIafter\fR they have moved by their current velocities; otherwise returns false. .PP See also collisions(). .PP @@ -241,9 +241,9 @@ Returns the list of canvas items that this canvas item has collided with. .PP A collision is generally defined as occurring when the pixels of one item draw on the pixels of another item, but not all subclasses are so precise. Also, since pixel-wise collision detection can be slow, this function works in either exact or inexact mode, according to the \fIexact\fR parameter. .PP -If \fIexact\fR is TRUE, the canvas items returned have been accurately tested for collision with the canvas item. +If \fIexact\fR is true, the canvas items returned have been accurately tested for collision with the canvas item. .PP -If \fIexact\fR is FALSE, the canvas items returned are \fInear\fR the canvas item. You can test the canvas items returned using collidesWith() if any are interesting collision candidates. By using this approach, you can ignore some canvas items for which collisions are not relevant. +If \fIexact\fR is false, the canvas items returned are \fInear\fR the canvas item. You can test the canvas items returned using collidesWith() if any are interesting collision candidates. By using this approach, you can ignore some canvas items for which collisions are not relevant. .PP The returned list is a list of TQCanvasItems, but often you will need to cast the items to their subclass types. The safe way to do this is to use rtti() before casting. This provides some of the functionality of the standard C++ dynamic cast operation even on compilers where dynamic casts are not available. .PP @@ -261,17 +261,17 @@ Reimplemented in TQCanvasSprite, TQCanvasPolygonalItem, and TQCanvasText. .PP Use isEnabled() instead. .SH "void TQCanvasItem::hide ()" -Shorthand for setVisible(FALSE). +Shorthand for setVisible(false). .SH "bool TQCanvasItem::isActive () const" -Returns TRUE if the TQCanvasItem is active; otherwise returns FALSE. +Returns true if the TQCanvasItem is active; otherwise returns false. .SH "bool TQCanvasItem::isEnabled () const" -Returns TRUE if the TQCanvasItem is enabled; otherwise returns FALSE. +Returns true if the TQCanvasItem is enabled; otherwise returns false. .SH "bool TQCanvasItem::isSelected () const" -Returns TRUE if the canvas item is selected; otherwise returns FALSE. +Returns true if the canvas item is selected; otherwise returns false. .SH "bool TQCanvasItem::isVisible () const" -Returns TRUE if the canvas item is visible; otherwise returns FALSE. +Returns true if the canvas item is visible; otherwise returns false. .PP -Note that in this context TRUE does \fInot\fR mean that the canvas item is currently in a view, merely that if a view is showing the area where the canvas item is positioned, and the item is not obscured by items with higher z values, and the view is not obscured by overlaying windows, it would be visible. +Note that in this context true does \fInot\fR mean that the canvas item is currently in a view, merely that if a view is showing the area where the canvas item is positioned, and the item is not obscured by items with higher z values, and the view is not obscured by overlaying windows, it would be visible. .PP See also setVisible() and z(). .SH "void TQCanvasItem::move ( double x, double y )" @@ -325,7 +325,7 @@ Sets the active flag of the item to \fIyes\fR. If this changes the item's active .PP The TQCanvas, TQCanvasItem and the Qt-supplied TQCanvasItem subclasses do not make use of this value. The setActive() function is supplied because many applications need it, but it is up to you how you use the isActive() value. .SH "void TQCanvasItem::setAnimated ( bool y )\fC [virtual]\fR" -Sets the canvas item to be in motion if \fIy\fR is TRUE, or not if \fIy\fR is FALSE. The speed and direction of the motion is set with setVelocity(), or with setXVelocity() and setYVelocity(). +Sets the canvas item to be in motion if \fIy\fR is true, or not if \fIy\fR is false. The speed and direction of the motion is set with setVelocity(), or with setXVelocity() and setYVelocity(). .PP See also advance() and TQCanvas::advance(). .SH "void TQCanvasItem::setCanvas ( TQCanvas * c )\fC [virtual]\fR" @@ -345,7 +345,7 @@ Sets the canvas item to be in motion, moving by \fIvx\fR and \fIvy\fR pixels in .PP See also advance(), setXVelocity(), and setYVelocity(). .SH "void TQCanvasItem::setVisible ( bool yes )\fC [virtual]\fR" -Makes the canvas item visible if \fIyes\fR is TRUE, or invisible if \fIyes\fR is FALSE. The change takes effect when TQCanvas::update() is next called. +Makes the canvas item visible if \fIyes\fR is true, or invisible if \fIyes\fR is false. The change takes effect when TQCanvas::update() is next called. .SH "void TQCanvasItem::setX ( double x )" Moves the canvas item so that its x-position is \fIx\fR. .PP @@ -374,7 +374,7 @@ See also z() and move(). Examples: .)l canvas/canvas.cpp and chart/chartform_canvas.cpp. .SH "void TQCanvasItem::show ()" -Shorthand for setVisible(TRUE). +Shorthand for setVisible(true). .PP Examples: .)l canvas/canvas.cpp and chart/chartform_canvas.cpp. |