ClanLib  2.3.7
Public Member Functions | List of all members
CL_Size Class Reference

2D (width,height) size structure - Integer More...

#include <size.h>

Inheritance diagram for CL_Size:
Inheritance graph
[legend]

Public Member Functions

 CL_Size ()
 
 CL_Size (int width, int height)
 
 CL_Size (const CL_Sizex< int > &s)
 
 CL_Size (const CL_Sizex< float > &copy)
 
 CL_Size (const CL_Sizex< double > &copy)
 
Operations
CL_Sizex< int > & operator+= (const CL_Sizex< int > &s)
 Size += Size operator. More...
 
CL_Sizex< int > & operator+= (const int &s)
 Size += operator. More...
 
CL_Sizex< int > & operator-= (const CL_Sizex< int > &s)
 Size -= Size operator. More...
 
CL_Sizex< int > & operator-= (const int &s)
 Size -= operator. More...
 
CL_Sizex< int > operator+ (const CL_Sizex< int > &s) const
 Size + Size operator. More...
 
CL_Sizex< int > operator+ (const int &s) const
 Size + operator. More...
 
CL_Sizex< int > operator- (const CL_Sizex< int > &s) const
 Size - Size operator. More...
 
CL_Sizex< int > operator- (const int &s) const
 Size - operator. More...
 
CL_Sizex< int > & operator*= (const int &s)
 Size *= operator. More...
 
CL_Sizex< int > & operator/= (const int &s)
 Size /= operator. More...
 
CL_Sizex< int > operator* (const int &s) const
 Size * operator. More...
 
CL_Sizex< int > operator/ (const int &s) const
 Size / operator. More...
 
bool operator== (const CL_Sizex< int > &s) const
 Size == Size operator (deep compare). More...
 
bool operator!= (const CL_Sizex< int > &s) const
 Size != Size operator (deep compare). More...
 

Public Attributes

Attributes
int width
 Size width. More...
 
int height
 Size height. More...
 

Detailed Description

2D (width,height) size structure - Integer

Constructor & Destructor Documentation

CL_Size::CL_Size ( )
inline
CL_Size::CL_Size ( int  width,
int  height 
)
inline
CL_Size::CL_Size ( const CL_Sizex< int > &  s)
inline
CL_Size::CL_Size ( const CL_Sizex< float > &  copy)
inlineexplicit
CL_Size::CL_Size ( const CL_Sizex< double > &  copy)
inlineexplicit

Member Function Documentation

bool CL_Sizex< int >::operator!= ( const CL_Sizex< int > &  s) const
inlineinherited

Size != Size operator (deep compare).

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

CL_Sizex<int > CL_Sizex< int >::operator* ( const int &  s) const
inlineinherited

Size * operator.

CL_Sizex<int >& CL_Sizex< int >::operator*= ( const int &  s)
inlineinherited

Size *= operator.

CL_Sizex<int > CL_Sizex< int >::operator+ ( const CL_Sizex< int > &  s) const
inlineinherited

Size + Size operator.

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

CL_Sizex<int > CL_Sizex< int >::operator+ ( const int &  s) const
inlineinherited

Size + operator.

CL_Sizex<int >& CL_Sizex< int >::operator+= ( const CL_Sizex< int > &  s)
inlineinherited

Size += Size operator.

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

CL_Sizex<int >& CL_Sizex< int >::operator+= ( const int &  s)
inlineinherited

Size += operator.

CL_Sizex<int > CL_Sizex< int >::operator- ( const CL_Sizex< int > &  s) const
inlineinherited

Size - Size operator.

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

CL_Sizex<int > CL_Sizex< int >::operator- ( const int &  s) const
inlineinherited

Size - operator.

CL_Sizex<int >& CL_Sizex< int >::operator-= ( const CL_Sizex< int > &  s)
inlineinherited

Size -= Size operator.

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

CL_Sizex<int >& CL_Sizex< int >::operator-= ( const int &  s)
inlineinherited

Size -= operator.

CL_Sizex<int > CL_Sizex< int >::operator/ ( const int &  s) const
inlineinherited

Size / operator.

CL_Sizex<int >& CL_Sizex< int >::operator/= ( const int &  s)
inlineinherited

Size /= operator.

bool CL_Sizex< int >::operator== ( const CL_Sizex< int > &  s) const
inlineinherited

Size == Size operator (deep compare).

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

Member Data Documentation

int CL_Sizex< int >::height
inherited

Size height.

Referenced by CL_Size().

int CL_Sizex< int >::width
inherited

Size width.

Referenced by CL_Size().


The documentation for this class was generated from the following file: