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/tqrect.html | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'doc/html/tqrect.html') diff --git a/doc/html/tqrect.html b/doc/html/tqrect.html index 6145e1e18..f67e14723 100644 --- a/doc/html/tqrect.html +++ b/doc/html/tqrect.html @@ -94,10 +94,10 @@ body { background: #ffffff; color: black; }
  • TQRect operator& ( const TQRect & r ) const
  • TQRect & operator|= ( const TQRect & r )
  • TQRect & operator&= ( const TQRect & r )
  • -
  • bool contains ( const TQPoint & p, bool proper = FALSE ) const
  • +
  • bool contains ( const TQPoint & p, bool proper = false ) const
  • bool contains ( int x, int y ) const
  • bool contains ( int x, int y, bool proper ) const
  • -
  • bool contains ( const TQRect & r, bool proper = FALSE ) const
  • +
  • bool contains ( const TQRect & r, bool proper = false ) const
  • TQRect unite ( const TQRect & r ) const
  • TQRect intersect ( const TQRect & r ) const
  • bool intersects ( const TQRect & r ) const
  • @@ -207,34 +207,34 @@ existing coordinates of the rectangle.

    See also moveCenter(), topLeft(), bottomRight(), topRight(), and bottomLeft().

    Example: tooltip/tooltip.cpp. -

    bool TQRect::contains ( const TQPoint & p, bool proper = FALSE ) const +

    bool TQRect::contains ( const TQPoint & p, bool proper = false ) const

    -Returns TRUE if the point p is inside or on the edge of the -rectangle; otherwise returns FALSE. -

    If proper is TRUE, this function returns TRUE only if p is +Returns true if the point p is inside or on the edge of the +rectangle; otherwise returns false. +

    If proper is true, this function returns true only if p is inside (not on the edge).

    Example: t14/cannon.cpp.

    bool TQRect::contains ( int x, int y ) const

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

    Returns TRUE if the point x, y is inside this rectangle; -otherwise returns FALSE. +

    Returns true if the point x, y is inside this rectangle; +otherwise returns false.

    bool TQRect::contains ( int x, int y, bool proper ) const

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

    Returns TRUE if the point x, y is inside this rectangle; -otherwise returns FALSE. -

    If proper is TRUE, this function returns TRUE only if the point +

    Returns true if the point x, y is inside this rectangle; +otherwise returns false. +

    If proper is true, this function returns true only if the point is entirely inside (not on the edge). -

    bool TQRect::contains ( const TQRect & r, bool proper = FALSE ) const +

    bool TQRect::contains ( const TQRect & r, bool proper = false ) const

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

    Returns TRUE if the rectangle r is inside this rectangle; -otherwise returns FALSE. -

    If proper is TRUE, this function returns TRUE only if r is +

    Returns true if the rectangle r is inside this rectangle; +otherwise returns false. +

    If proper is true, this function returns true only if r is entirely inside (not on the edge).

    See also unite(), intersect(), and intersects(). @@ -260,16 +260,16 @@ Returns the intersection of this rectangle and rectangle r.

    bool TQRect::intersects ( const TQRect & r ) const

    -Returns TRUE if this rectangle intersects with rectangle r +Returns true if this rectangle intersects with rectangle r (there is at least one pixel that is within both rectangles); -otherwise returns FALSE. +otherwise returns false.

    See also intersect() and contains().

    Examples: t11/cannon.cpp, t12/cannon.cpp, t13/cannon.cpp, and t14/cannon.cpp.

    bool TQRect::isEmpty () const

    -

    Returns TRUE if the rectangle is empty; otherwise returns FALSE. +

    Returns true if the rectangle is empty; otherwise returns false.

    An empty rectangle has a left() > right() or top() > bottom().

    An empty rectangle is not valid. isEmpty() == !isValid()

    See also isNull(), isValid(), and normalize(). @@ -277,8 +277,8 @@ otherwise returns FALSE.

    bool TQRect::isNull () const

    -

    Returns TRUE if the rectangle is a null rectangle; otherwise -returns FALSE. +

    Returns true if the rectangle is a null rectangle; otherwise +returns false.

    A null rectangle has both the width and the height set to 0, that is right() == left() - 1 and bottom() == top() - 1.

    Note that if right() == left() and bottom() == top(), then the @@ -290,7 +290,7 @@ rectangle has width 1 and height 1.

    bool TQRect::isValid () const

    -

    Returns TRUE if the rectangle is valid; otherwise returns FALSE. +

    Returns true if the rectangle is valid; otherwise returns false.

    A valid rectangle has a left() <= right() and top() <= bottom().

    Note that non-trivial operations like intersections are not defined for invalid rectangles. @@ -609,7 +609,7 @@ left and right edges, i.e. width = right - left + 1.

    bool operator!= ( const TQRect & r1, const TQRect & r2 )

    -

    Returns TRUE if r1 and r2 are different; otherwise returns FALSE. +

    Returns true if r1 and r2 are different; otherwise returns false.

    TQDataStream & operator<< ( TQDataStream & s, const TQRect & r )

    @@ -621,7 +621,7 @@ reference to the stream.

    bool operator== ( const TQRect & r1, const TQRect & r2 )

    -

    Returns TRUE if r1 and r2 are equal; otherwise returns FALSE. +

    Returns true if r1 and r2 are equal; otherwise returns false.

    TQDataStream & operator>> ( TQDataStream & s, TQRect & r )

    -- cgit v1.2.3