kig
#include <rect.h>
Public Member Functions | |
| Rect (const Coordinate bottomLeft, const Coordinate topRight) | |
| Rect (const Coordinate bottomLeft, const double width, const double height) | |
| Rect (double xa, double ya, double width, double height) | |
| Rect (const Rect &r) | |
| Rect () | |
| double | bottom () const | 
| Coordinate | bottomLeft () const | 
| Coordinate | bottomRight () const | 
| Coordinate | center () const | 
| bool | contains (const Coordinate &p) const | 
| bool | contains (const Coordinate &p, double allowed_miss) const | 
| void | eat (const Rect &r) | 
| double | height () const | 
| bool | intersects (const Rect &p) const | 
| double | left () const | 
| Rect | matchShape (const Rect &rhs, bool shrink=false) const | 
| void | moveBy (const Coordinate p) | 
| void | normalize () | 
| Rect | normalized () const | 
| Rect & | operator*= (const double r) | 
| Rect & | operator+= (const Coordinate p) | 
| Rect & | operator/= (const double r) | 
| Rect & | operator|= (const Rect &rhs) | 
| double | right () const | 
| void | scale (const double r) | 
| void | setBottom (const double p) | 
| void | setBottomLeft (const Coordinate p) | 
| void | setBottomRight (const Coordinate p) | 
| void | setCenter (const Coordinate p) | 
| void | setContains (Coordinate p) | 
| void | setHeight (const double h) | 
| void | setLeft (const double p) | 
| void | setRight (const double p) | 
| void | setTop (const double p) | 
| void | setTopLeft (const Coordinate p) | 
| void | setTopRight (const Coordinate p) | 
| void | setWidth (const double w) | 
| double | top () const | 
| Coordinate | topLeft () const | 
| Coordinate | topRight () const | 
| QRect | toQRect () const | 
| bool | valid () | 
| double | width () const | 
Static Public Member Functions | |
| static Rect | fromQRect (const QRect &) | 
| static Rect | invalidRect () | 
Protected Attributes | |
| Coordinate | mBottomLeft | 
| double | mheight | 
| double | mwidth | 
Friends | |
| kdbgstream & | operator<< (kdbgstream &s, const Rect &t) | 
Detailed Description
This file is part of Kig, a KDE program for Interactive Geometry...
Copyright (C) 2002 Dominique Devriese devriese@kde.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA like Coordinate is a QPoint replacement with doubles, this is a QRect replacement with doubles...
Constructor & Destructor Documentation
| Rect::Rect | ( | const Coordinate | bottomLeft, | 
| const Coordinate | topRight | ||
| ) | 
| Rect::Rect | ( | const Coordinate | bottomLeft, | 
| const double | width, | ||
| const double | height | ||
| ) | 
| Rect::Rect | ( | double | xa, | 
| double | ya, | ||
| double | width, | ||
| double | height | ||
| ) | 
Member Function Documentation
| Coordinate Rect::bottomLeft | ( | ) | const | 
| Coordinate Rect::bottomRight | ( | ) | const | 
| Coordinate Rect::center | ( | ) | const | 
| bool Rect::contains | ( | const Coordinate & | p | ) | const | 
| bool Rect::contains | ( | const Coordinate & | p, | 
| double | allowed_miss | ||
| ) | const | 
| void Rect::eat | ( | const Rect & | r | ) | 
| void Rect::moveBy | ( | const Coordinate | p | ) | 
| void Rect::normalize | ( | ) | 
      
  | 
  inline | 
      
  | 
  inline | 
| void Rect::scale | ( | const double | r | ) | 
| void Rect::setBottomLeft | ( | const Coordinate | p | ) | 
| void Rect::setBottomRight | ( | const Coordinate | p | ) | 
| void Rect::setCenter | ( | const Coordinate | p | ) | 
| void Rect::setContains | ( | Coordinate | p | ) | 
| void Rect::setTopLeft | ( | const Coordinate | p | ) | 
| void Rect::setTopRight | ( | const Coordinate | p | ) | 
| Coordinate Rect::topLeft | ( | ) | const | 
| Coordinate Rect::topRight | ( | ) | const | 
Friends And Related Function Documentation
      
  | 
  friend | 
Member Data Documentation
      
  | 
  protected | 
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference