xbmc
Public Types | Public Member Functions | List of all members
CSizeGen< T > Class Template Reference

Generic two-dimensional size representation. More...

#include <Geometry.h>

Public Types

typedef CSizeGen< T > this_type
 

Public Member Functions

 CSizeGen (T width, T height)
 
Width () const
 
Height () const
 
void SetWidth (T width)
 
void SetHeight (T height)
 
void Set (T width, T height)
 
bool IsZero () const
 
Area () const
 
CPointGen< T > ToPoint () const
 
template<class U >
 CSizeGen (const CSizeGen< U > &rhs)
 
this_type operator+ (const this_type &size) const
 
this_typeoperator+= (const this_type &size)
 
this_type operator- (const this_type &size) const
 
this_typeoperator-= (const this_type &size)
 
this_type operator* (T factor) const
 
this_typeoperator*= (T factor)
 
this_type operator/ (T factor) const
 
this_typeoperator/= (T factor)
 

Detailed Description

template<typename T>
class CSizeGen< T >

Generic two-dimensional size representation.

Class invariant: width and height are both non-negative Throws std::out_of_range if invariant would be violated. The class is exception-safe. If modification would violate the invariant, the size is not changed.


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