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/tqregion.html | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'doc/html/tqregion.html') diff --git a/doc/html/tqregion.html b/doc/html/tqregion.html index b228ec3c3..f0ea4bd48 100644 --- a/doc/html/tqregion.html +++ b/doc/html/tqregion.html @@ -40,7 +40,7 @@ body { background: #ffffff; color: black; }
  • TQRegion ()
  • TQRegion ( int x, int y, int w, int h, RegionType t = Rectangle )
  • TQRegion ( const TQRect & r, RegionType t = Rectangle )
  • -
  • TQRegion ( const TQPointArray & a, bool winding = FALSE )
  • +
  • TQRegion ( const TQPointArray & a, bool winding = false )
  • TQRegion ( const TQRegion & r )
  • TQRegion ( const TQBitmap & bm )
  • ~TQRegion ()
  • @@ -145,10 +145,10 @@ This is an overloaded member function, provided for convenience. It behaves esse

    If the rectangle is invalid a null region will be created.

    See also TQRegion::RegionType. -

    TQRegion::TQRegion ( const TQPointArray & a, bool winding = FALSE ) +

    TQRegion::TQRegion ( const TQPointArray & a, bool winding = false )

    Constructs a polygon region from the point array a. -

    If winding is TRUE, the polygon region is filled using the +

    If winding is true, the polygon region is filled using the winding algorithm, otherwise the default even-odd fill algorithm is used.

    This constructor may create complex regions that will slow down @@ -178,14 +178,14 @@ gives a rectangle that is TQRect::isNull().

    bool TQRegion::contains ( const TQPoint & p ) const

    -Returns TRUE if the region contains the point p; otherwise -returns FALSE. +Returns true if the region contains the point p; otherwise +returns false.

    bool TQRegion::contains ( const TQRect & r ) const

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

    Returns TRUE if the region overlaps the rectangle r; otherwise -returns FALSE. +

    Returns true if the region overlaps the rectangle r; otherwise +returns false.

    TQRegion TQRegion::eor ( const TQRegion & r ) const

    @@ -207,31 +207,31 @@ Returns a region which is the intersection of this region and r.

    bool TQRegion::isEmpty () const

    -Returns TRUE if the region is empty; otherwise returns FALSE. An +Returns true if the region is empty; otherwise returns false. An empty region is a region that contains no points.

    Example:

             TQRegion r1( 10, 10, 20, 20 );
             TQRegion r2( 40, 40, 20, 20 );
             TQRegion r3;
    -        r1.isNull();             // FALSE
    -        r1.isEmpty();            // FALSE
    -        r3.isNull();             // TRUE
    -        r3.isEmpty();            // TRUE
    +        r1.isNull();             // false
    +        r1.isEmpty();            // false
    +        r3.isNull();             // true
    +        r3.isEmpty();            // true
             r3 = r1.intersect( r2 ); // r3 = intersection of r1 and r2
    -        r3.isNull();             // FALSE
    -        r3.isEmpty();            // TRUE
    +        r3.isNull();             // false
    +        r3.isEmpty();            // true
             r3 = r1.unite( r2 );     // r3 = union of r1 and r2
    -        r3.isNull();             // FALSE
    -        r3.isEmpty();            // FALSE
    +        r3.isNull();             // false
    +        r3.isEmpty();            // false
         

    See also isNull().

    bool TQRegion::isNull () const

    -Returns TRUE if the region is a null region; otherwise returns -FALSE. +Returns true if the region is a null region; otherwise returns +false.

    A null region is a region that has not been initialized. A null region is always empty.

    See also isEmpty(). @@ -239,8 +239,8 @@ region is always empty.

    bool TQRegion::operator!= ( const TQRegion & r ) const

    -

    Returns TRUE if the region is different from r; otherwise -returns FALSE. +

    Returns true if the region is different from r; otherwise +returns false.

    const TQRegion TQRegion::operator& ( const TQRegion & r ) const

    @@ -284,8 +284,8 @@ Assigns r to this region and returns a reference to the region.

    bool TQRegion::operator== ( const TQRegion & r ) const

    -Returns TRUE if the region is equal to r; otherwise returns -FALSE. +Returns true if the region is equal to r; otherwise returns +false.

    const TQRegion TQRegion::operator^ ( const TQRegion & r ) const

    -- cgit v1.2.3