From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqcanvas.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'doc/html/tqcanvas.html') diff --git a/doc/html/tqcanvas.html b/doc/html/tqcanvas.html index aa7e6f0b3..f43d0774d 100644 --- a/doc/html/tqcanvas.html +++ b/doc/html/tqcanvas.html @@ -70,7 +70,7 @@ body { background: #ffffff; color: black; }
  • TQCanvasItemList collisions ( const TQPoint & p ) const
  • TQCanvasItemList collisions ( const TQRect & r ) const
  • TQCanvasItemList collisions ( const TQPointArray & chunklist, const TQCanvasItem * item, bool exact ) const
  • -
  • void drawArea ( const TQRect & clip, TQPainter * painter, bool dbuf = FALSE )
  • +
  • void drawArea ( const TQRect & clip, TQPainter * painter, bool dbuf = false )
  • virtual void setAdvancePeriod ( int ms )
  • virtual void setUpdatePeriod ( int ms )
  • virtual void setDoubleBuffering ( bool y )
  • @@ -114,7 +114,7 @@ set of canvas item classes, e.g. TQCanvasEllipse< TQCanvasSprite and TQCanvasText. You can subclass to create your own canvas items; TQCanvasPolygonalItem is the most common base class used for this purpose. -

    Items appear on the canvas after their show() function has been called (or setVisible(TRUE)), and after +

    Items appear on the canvas after their show() function has been called (or setVisible(true)), and after 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 @@ -167,7 +167,7 @@ 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 +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 can be moved with TQCanvasItem::move(). The advance() @@ -318,15 +318,15 @@ list is ordered by z coordinates, from highest z coordinate This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Returns a list of canvas items which intersect with the chunks -listed in chunklist, excluding item. If exact is TRUE, +listed in chunklist, excluding item. If exact is true, only those which actually collide with item are returned; otherwise canvas items are included just for being in the chunks.

    This is a utility function mainly used to implement the simpler TQCanvasItem::collisions() function. -

    void TQCanvas::drawArea ( const TQRect & clip, TQPainter * painter, bool dbuf = FALSE ) +

    void TQCanvas::drawArea ( const TQRect & clip, TQPainter * painter, bool dbuf = false )

    -Paints all canvas items that are in the area clip to painter, using double-buffering if dbuf is TRUE. +Paints all canvas items that are in the area clip to painter, using double-buffering if dbuf is true.

    e.g. to print the canvas to a printer:

         TQPrinter pr;
    @@ -369,16 +369,16 @@ the area clip.
     

    bool TQCanvas::onCanvas ( int x, int y ) const

    -

    Returns TRUE if the pixel position (x, y) is on the canvas; -otherwise returns FALSE. +

    Returns true if the pixel position (x, y) is on the canvas; +otherwise returns false.

    See also validChunk().

    bool TQCanvas::onCanvas ( const TQPoint & p ) const

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Returns TRUE if the pixel position p is on the canvas; -otherwise returns FALSE. +

    Returns true if the pixel position p is on the canvas; +otherwise returns false.

    See also validChunk().

    TQRect TQCanvas::rect () const @@ -459,7 +459,7 @@ views that are showing it when update() is called next.

    void TQCanvas::setDoubleBuffering ( bool y ) [virtual]

    -If y is TRUE (the default) double-buffering is switched on; +If y is true (the default) double-buffering is switched on; otherwise double-buffering is switched off.

    Turning off double-buffering causes the redrawn areas to flicker a little and also gives a (usually small) performance improvement. @@ -556,16 +556,16 @@ Repaints changed areas in all views of the canvas.

    bool TQCanvas::validChunk ( int x, int y ) const

    -

    Returns TRUE if the chunk position (x, y) is on the canvas; -otherwise returns FALSE. +

    Returns true if the chunk position (x, y) is on the canvas; +otherwise returns false.

    See also onCanvas().

    bool TQCanvas::validChunk ( const TQPoint & p ) const

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Returns TRUE if the chunk position p is on the canvas; otherwise -returns FALSE. +

    Returns true if the chunk position p is on the canvas; otherwise +returns false.

    See also onCanvas().

    int TQCanvas::width () const -- cgit v1.2.3