lib Library API Documentation

KoRect Class Reference

A rect whose coordinates are floating-point values ( "double"s ). More...

#include <koRect.h>

List of all members.

Public Member Functions

 KoRect (const KoPoint &topleft, const KoPoint &bottomright)
 KoRect (const KoPoint &topleft, const KoSize &size)
 KoRect (const double &left, const double &top, const double &width, const double &height)
bool isNull () const
bool isEmpty () const
bool isValid () const
KoRect normalize () const
double left () const
double top () const
double right () const
double bottom () const
double & rLeft ()
double & rTop ()
double & rRight ()
double & rBottom ()
double x () const
double y () const
void setLeft (const double &left)
void setTop (const double &top)
void setRight (const double &right)
void setBottom (const double &bottom)
void setX (const double &x)
void setY (const double &y)
KoPoint topLeft () const
KoPoint bottomRight () const
KoPoint topRight () const
KoPoint bottomLeft () const
KoPoint center () const
void moveTopLeft (const KoPoint &topleft)
void moveBottomRight (const KoPoint &bottomright)
void moveTopRight (const KoPoint &topright)
void moveBottomLeft (const KoPoint &bottomleft)
void moveBy (const double &dx, const double &dy)
void setRect (const double &x, const double &y, const double &width, const double &height)
void setRect (const KoRect &rect)
void setCoords (const double &x1, const double &y1, const double &x2, const double &y2)
KoSize size () const
double width () const
double height () const
void setWidth (const double &width)
void setHeight (const double &height)
void setSize (const KoSize &size)
KoRectoperator|= (const KoRect &rhs)
KoRectoperator &= (const KoRect &rhs)
bool contains (const KoPoint &p, bool proper=false) const
bool contains (const double &x, const double &y, bool proper=false) const
bool contains (const KoRect &r, bool proper=false) const
KoRect unite (const KoRect &r) const
KoRect intersect (const KoRect &r) const
bool intersects (const KoRect &r) const
KoRect transform (const QWMatrix &m) const
KoRect translate (double dx, double dy) const
QRect toQRect () const

Static Public Member Functions

KoRect fromQRect (const QRect &rect)


Detailed Description

A rect whose coordinates are floating-point values ( "double"s ).

The API isn't documented, it's a perfect mirror of QRect.

Definition at line 30 of file koRect.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Nov 17 06:54:22 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003