PPL6-Icon Patrick's Programming Library Version 6.4.21 - Dokumentation
ppl6::grafix::Size Klassenreferenz

Repräsentiert Breite und Höhe eines beliebigen Objekts in einem zweidimensionalen Koordinatensystem.

Öffentliche Methoden

 Size ()
 
 Size (int width, int height)
 
int height () const
 
bool isEmpty () const
 
bool isNull () const
 
bool isValid () const
 
Sizeoperator*= (double factor)
 
Sizeoperator+= (const Size &size)
 
Sizeoperator-= (const Size &size)
 
Sizeoperator/= (double divisor)
 
int & rheight ()
 
int & rwidth ()
 
void setHeight (int height)
 
void setSize (int width, int height)
 
void setSize (const Size &s)
 
void setWidth (int width)
 
int width () const
 

Private Attribute

int h
 
int w
 

Freundbeziehungen

bool operator!= (const Size &s1, const Size &s2)
 
const Size operator* (const Size &size, double factor)
 
const Size operator* (double factor, const Size &size)
 
const Size operator+ (const Size &s1, const Size &s2)
 
const Size operator- (const Size &s1, const Size &s2)
 
const Size operator- (const Size &size)
 
const Size operator/ (const Size &size, double divisor)
 
bool operator== (const Size &s1, const Size &s2)
 

Beschreibung der Konstruktoren und Destruktoren

ppl6::grafix::Size::Size ( )
ppl6::grafix::Size::Size ( int  width,
int  height 
)

Dokumentation der Elementfunktionen

int ppl6::grafix::Size::height ( ) const
bool ppl6::grafix::Size::isEmpty ( ) const
bool ppl6::grafix::Size::isNull ( ) const
bool ppl6::grafix::Size::isValid ( ) const
Size & ppl6::grafix::Size::operator*= ( double  factor)
Size & ppl6::grafix::Size::operator+= ( const Size size)
Size & ppl6::grafix::Size::operator-= ( const Size size)
Size & ppl6::grafix::Size::operator/= ( double  divisor)
int & ppl6::grafix::Size::rheight ( )
int & ppl6::grafix::Size::rwidth ( )
void ppl6::grafix::Size::setHeight ( int  height)
void ppl6::grafix::Size::setSize ( int  width,
int  height 
)
void ppl6::grafix::Size::setSize ( const Size s)
void ppl6::grafix::Size::setWidth ( int  width)
int ppl6::grafix::Size::width ( ) const

Freundbeziehungen und Funktionsdokumentation

bool operator!= ( const Size s1,
const Size s2 
)
friend
const Size operator* ( const Size size,
double  factor 
)
friend
const Size operator* ( double  factor,
const Size size 
)
friend
const Size operator+ ( const Size s1,
const Size s2 
)
friend
const Size operator- ( const Size s1,
const Size s2 
)
friend
const Size operator- ( const Size size)
friend
const Size operator/ ( const Size size,
double  divisor 
)
friend
bool operator== ( const Size s1,
const Size s2 
)
friend

Dokumentation der Datenelemente

int ppl6::grafix::Size::h
private
int ppl6::grafix::Size::w
private

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