PPL7-Icon Patrick's Programming Library Version 7.0.0 - Dokumentation
ppl7::grafix::Rect Klassenreferenz

Repräsentiert ein Rechteck in einem zweidimensionalen Koordinatensystem. Mehr ...

Öffentliche Methoden

 Rect ()
 
 Rect (const Point &p1, const Point &p2)
 
 Rect (const Point &p, const Size &s)
 
 Rect (int x, int y, int width, int height)
 
 Rect (const Rect &r)
 
 Rect (const RECT &r)
 
int bottom () const
 
Point bottomLeft () const
 
Point bottomRight () const
 
int height () const
 
Rect intersected (const Rect &other)
 
bool intersects (const Rect &other)
 
bool isNull () const
 
int left () const
 
Rect normalized () const
 
int right () const
 
void setBottom (int bottom)
 
void setBottomRight (const Point &bottomRight)
 
void setCoords (int x1, int y1, int x2, int y2)
 
void setCoords (const Point &p1, const Point &p2)
 
void setHeight (int height)
 
void setLeft (int left)
 
void setRect (const RECT &r)
 
void setRect (const Rect &r)
 
void setRect (int x, int y, int width, int height)
 
void setRight (int right)
 
void setSize (const Size &size)
 
void setTop (int top)
 
void setTopLeft (const Point &topLeft)
 
void setWidth (int width)
 
void setX (int x)
 
void setY (int y)
 
Size size () const
 
int top () const
 
Point topLeft () const
 
Point topRight () const
 
int width () const
 

Öffentliche Attribute

int x1
 
int x2
 
int y1
 
int y2
 

Freundbeziehungen

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

Ausführliche Beschreibung

Beschreibung:
By convention, the right and bottom edges of the rectangle are normally considered exclusive. In other words, the pixel whose coordinates are ( right, bottom ) lies immediately outside of the rectangle. For example, when RECT is passed to the FillRect function, the rectangle is filled up to, but not including, the right column and bottom row of pixels.

Beschreibung der Konstruktoren und Destruktoren

ppl7::grafix::Rect::Rect ( )
ppl7::grafix::Rect::Rect ( const Point p1,
const Point p2 
)
ppl7::grafix::Rect::Rect ( const Point p,
const Size s 
)
ppl7::grafix::Rect::Rect ( int  x,
int  y,
int  width,
int  height 
)
ppl7::grafix::Rect::Rect ( const Rect r)
ppl7::grafix::Rect::Rect ( const RECT r)

Dokumentation der Elementfunktionen

int ppl7::grafix::Rect::bottom ( ) const
Point ppl7::grafix::Rect::bottomLeft ( ) const
Point ppl7::grafix::Rect::bottomRight ( ) const
int ppl7::grafix::Rect::height ( ) const
Rect ppl7::grafix::Rect::intersected ( const Rect other)
bool ppl7::grafix::Rect::intersects ( const Rect other)
bool ppl7::grafix::Rect::isNull ( ) const
int ppl7::grafix::Rect::left ( ) const
Rect ppl7::grafix::Rect::normalized ( ) const
int ppl7::grafix::Rect::right ( ) const
void ppl7::grafix::Rect::setBottom ( int  bottom)
void ppl7::grafix::Rect::setBottomRight ( const Point bottomRight)
void ppl7::grafix::Rect::setCoords ( int  x1,
int  y1,
int  x2,
int  y2 
)
void ppl7::grafix::Rect::setCoords ( const Point p1,
const Point p2 
)
void ppl7::grafix::Rect::setHeight ( int  height)
void ppl7::grafix::Rect::setLeft ( int  left)
void ppl7::grafix::Rect::setRect ( const RECT r)
void ppl7::grafix::Rect::setRect ( const Rect r)
void ppl7::grafix::Rect::setRect ( int  x,
int  y,
int  width,
int  height 
)
void ppl7::grafix::Rect::setRight ( int  right)
void ppl7::grafix::Rect::setSize ( const Size size)
void ppl7::grafix::Rect::setTop ( int  top)
void ppl7::grafix::Rect::setTopLeft ( const Point topLeft)
void ppl7::grafix::Rect::setWidth ( int  width)
void ppl7::grafix::Rect::setX ( int  x)
void ppl7::grafix::Rect::setY ( int  y)
Size ppl7::grafix::Rect::size ( ) const
int ppl7::grafix::Rect::top ( ) const
Point ppl7::grafix::Rect::topLeft ( ) const
Point ppl7::grafix::Rect::topRight ( ) const
int ppl7::grafix::Rect::width ( ) const

Freundbeziehungen und Funktionsdokumentation

bool operator!= ( const Rect r1,
const Rect r2 
)
friend
bool operator== ( const Rect r1,
const Rect r2 
)
friend

Dokumentation der Datenelemente

int ppl7::grafix::Rect::x1
int ppl7::grafix::Rect::x2
int ppl7::grafix::Rect::y1
int ppl7::grafix::Rect::y2

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: