Vaca::Size Class Reference

#include <Size.h>

List of all members.


Detailed Description

A 2D size.

Public Member Functions

 Size ()
 Size (int w, int h)
 Size (const Size &size)
 Size (const Point &point)
Size createUnion (const Size &sz) const
Size createIntersect (const Size &sz) const
const Sizeoperator= (const Size &sz)
const Sizeoperator+= (const Size &sz)
const Sizeoperator-= (const Size &sz)
const Sizeoperator+= (int value)
const Sizeoperator-= (int value)
const Sizeoperator*= (int value)
const Sizeoperator/= (int value)
Size operator+ (const Size &sz) const
Size operator- (const Size &sz) const
Size operator+ (int value) const
Size operator- (int value) const
Size operator* (int value) const
Size operator/ (int value) const
Size operator- () const
bool operator== (const Size &sz) const
bool operator!= (const Size &sz) const
 Size (CONST LPSIZE sz)
 operator SIZE () const

Public Attributes

int w
int h

Constructor & Destructor Documentation

Size::Size (  ) 

Size::Size ( int  w,
int  h 
)

Size::Size ( const Size size  ) 

Size::Size ( const Point point  )  [explicit]

Size::Size ( CONST LPSIZE  sz  )  [explicit]


Member Function Documentation

Size Size::createUnion ( const Size sz  )  const

Size Size::createIntersect ( const Size sz  )  const

const Size & Size::operator= ( const Size sz  ) 

const Size & Size::operator+= ( const Size sz  ) 

const Size & Size::operator-= ( const Size sz  ) 

const Size & Size::operator+= ( int  value  ) 

const Size & Size::operator-= ( int  value  ) 

const Size & Size::operator*= ( int  value  ) 

const Size & Size::operator/= ( int  value  ) 

Size Size::operator+ ( const Size sz  )  const

Size Size::operator- ( const Size sz  )  const

Size Size::operator+ ( int  value  )  const

Size Size::operator- ( int  value  )  const

Size Size::operator* ( int  value  )  const

Size Size::operator/ ( int  value  )  const

Size Size::operator- (  )  const

bool Size::operator== ( const Size sz  )  const

bool Size::operator!= ( const Size sz  )  const

Size::operator SIZE (  )  const


Member Data Documentation