In file uta/programmer.doc:

namespace uta class Rect


Inheritance:


Public Fields

static Rect invalid
static Rect empty

Public Methods

Rect()
Rect( int x, int y, int w, int h)
Rect( const Point& upperLeft, const Point& lowerRight)
virtual ~Rect()
bool isEmpty() const
bool isValid() const
bool contains( const Point &p ) const
bool contains( const Rect &r ) const
virtual void translate( int dx, int dy )
move the rectangle by (dx, dy)
virtual void warp(const Point &newUpperLeft)
move the rectangle, specifying new upperleft corner
virtual void resize(int w, int h)
this keeps the upper left corner and moves the lower right one
Rect unite( const Rect &r ) const
Rect intersect( const Rect &r) const
const Point& upperLeft() const
const Point& lowerRight() const
int width() const
int height() const
friend bool operator==(const Rect &p, const Rect &q)
friend bool operator<(const Rect &p, const Rect &q)
comparism by size of area (width * height)
friend ostream& operator<<(ostream& s, const Rect& p)

Protected Fields

Point upperLeft_
Point lowerRight_

Documentation

Rect()

Rect( int x, int y, int w, int h)

Rect( const Point& upperLeft, const Point& lowerRight)

virtual ~Rect()

static Rect invalid

static Rect empty

bool isEmpty() const

bool isValid() const

bool contains( const Point &p ) const

bool contains( const Rect &r ) const

virtual void translate( int dx, int dy )
move the rectangle by (dx, dy)

virtual void warp(const Point &newUpperLeft)
move the rectangle, specifying new upperleft corner

virtual void resize(int w, int h)
this keeps the upper left corner and moves the lower right one

Rect unite( const Rect &r ) const

Rect intersect( const Rect &r) const

const Point& upperLeft() const

const Point& lowerRight() const

int width() const

int height() const

friend bool operator==(const Rect &p, const Rect &q)

friend bool operator<(const Rect &p, const Rect &q)
comparism by size of area (width * height)

friend ostream& operator<<(ostream& s, const Rect& p)

Point upperLeft_

Point lowerRight_


Direct child classes:
Widget

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de