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

#include <size.h>

+ Inheritance diagram for clan::Size:

Public Member Functions

 Size ()
 
 Size (int width, int height)
 
 Size (const Sizex< int > &s)
 
 Size (const Vec2< int > &s)
 
 Size (const Sizex< float > &copy)
 
 Size (const Sizex< double > &copy)
 
Operations
 operator Vec2< int > () const
 
Sizex< int > & operator+= (const Sizex< int > &s)
 Size += Size operator. More...
 
Sizex< int > & operator+= (const int &s)
 Size += operator. More...
 
Sizex< int > & operator-= (const Sizex< int > &s)
 Size -= Size operator. More...
 
Sizex< int > & operator-= (const int &s)
 Size -= operator. More...
 
Sizex< int > operator+ (const Sizex< int > &s) const
 Size + Size operator. More...
 
Sizex< int > operator+ (const int &s) const
 Size + operator. More...
 
Sizex< int > operator- (const Sizex< int > &s) const
 Size - Size operator. More...
 
Sizex< int > operator- (const int &s) const
 Size - operator. More...
 
Sizex< int > & operator*= (const int &s)
 Size *= operator. More...
 
Sizex< int > & operator/= (const int &s)
 Size /= operator. More...
 
Sizex< int > operator* (const int &s) const
 Size * operator. More...
 
Sizex< int > operator/ (const int &s) const
 Size / operator. More...
 
bool operator== (const Sizex< int > &s) const
 Size == Size operator (deep compare). More...
 
bool operator!= (const 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

Member Function Documentation

clan::Sizex< int >::operator Vec2< int > ( ) const
inlineinherited
bool clan::Sizex< int >::operator!= ( const Sizex< int > &  s) const
inlineinherited

Size != Size operator (deep compare).

References clan::Sizex< Type >::height, and clan::Sizex< Type >::width.

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

Size * operator.

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

Size *= operator.

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

Size + Size operator.

References clan::Sizex< Type >::height, and clan::Sizex< Type >::width.

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

Size + operator.

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

Size += Size operator.

References clan::Sizex< Type >::height, and clan::Sizex< Type >::width.

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

Size += operator.

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

Size - Size operator.

References clan::Sizex< Type >::height, and clan::Sizex< Type >::width.

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

Size - operator.

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

Size -= Size operator.

References clan::Sizex< Type >::height, and clan::Sizex< Type >::width.

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

Size -= operator.

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

Size / operator.

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

Size /= operator.

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

Size == Size operator (deep compare).

References clan::Sizex< Type >::height, and clan::Sizex< Type >::width.

Member Data Documentation

int clan::Sizex< int >::height
inherited

Size height.

Referenced by Size().

int clan::Sizex< int >::width
inherited

Size width.

Referenced by Size().


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