Public Member Functions | Public Attributes

sp::dim::size2d< T > Class Template Reference

#include <spDimensionSize2D.hpp>

List of all members.

Public Member Functions

 size2d ()
 size2d (T Size)
 size2d (T InitWidth, T InitHeight)
 size2d (const size2d< T > &Other)
 ~size2d ()
bool operator== (const size2d< T > &Other) const
bool operator!= (const size2d< T > &Other) const
bool operator> (const size2d< T > &Other) const
 Returns true if this width and height are greater to the Other.
bool operator< (const size2d< T > &Other) const
 Returns true if this width and height are smaller to the Other.
bool operator>= (const size2d< T > &Other) const
 Returns true if this width and height are greater or equal to the Other.
bool operator<= (const size2d< T > &Other) const
 Returns true if this width and height are small or equal to the Other.
size2d< T > operator+ (const size2d< T > &Other) const
size2d< T > & operator+= (const size2d< T > &Other)
size2d< T > operator- (const size2d< T > &Other) const
size2d< T > & operator-= (const size2d< T > &Other)
size2d< T > operator/ (const size2d< T > &Other) const
size2d< T > & operator/= (const size2d< T > &Other)
size2d< T > operator* (const size2d< T > &Other) const
size2d< T > & operator*= (const size2d< T > &Other)
size2d< T > operator- () const
getArea () const
size2d< T > getClampedSize (const size2d< T > &MaxSize) const
 Clamps this size to the specified maximum size and returns the new one. The aspect ratio remains the same.
template<typename B >
size2d< B > cast () const

Public Attributes

Width
Height

template<typename T>
class sp::dim::size2d< T >


Constructor & Destructor Documentation

template<typename T>
sp::dim::size2d< T >::size2d (  )  [inline]
template<typename T>
sp::dim::size2d< T >::size2d ( Size  )  [inline]
template<typename T>
sp::dim::size2d< T >::size2d ( InitWidth,
InitHeight 
) [inline]
template<typename T>
sp::dim::size2d< T >::size2d ( const size2d< T > &  Other  )  [inline]
template<typename T>
sp::dim::size2d< T >::~size2d (  )  [inline]

Member Function Documentation

template<typename T>
template<typename B >
size2d<B> sp::dim::size2d< T >::cast (  )  const [inline]
template<typename T>
T sp::dim::size2d< T >::getArea (  )  const [inline]
template<typename T>
size2d<T> sp::dim::size2d< T >::getClampedSize ( const size2d< T > &  MaxSize  )  const [inline]

Clamps this size to the specified maximum size and returns the new one. The aspect ratio remains the same.

template<typename T>
bool sp::dim::size2d< T >::operator!= ( const size2d< T > &  Other  )  const [inline]
template<typename T>
size2d<T> sp::dim::size2d< T >::operator* ( const size2d< T > &  Other  )  const [inline]
template<typename T>
size2d<T>& sp::dim::size2d< T >::operator*= ( const size2d< T > &  Other  )  [inline]
template<typename T>
size2d<T> sp::dim::size2d< T >::operator+ ( const size2d< T > &  Other  )  const [inline]
template<typename T>
size2d<T>& sp::dim::size2d< T >::operator+= ( const size2d< T > &  Other  )  [inline]
template<typename T>
size2d<T> sp::dim::size2d< T >::operator- ( const size2d< T > &  Other  )  const [inline]
template<typename T>
size2d<T> sp::dim::size2d< T >::operator- (  )  const [inline]
template<typename T>
size2d<T>& sp::dim::size2d< T >::operator-= ( const size2d< T > &  Other  )  [inline]
template<typename T>
size2d<T> sp::dim::size2d< T >::operator/ ( const size2d< T > &  Other  )  const [inline]
template<typename T>
size2d<T>& sp::dim::size2d< T >::operator/= ( const size2d< T > &  Other  )  [inline]
template<typename T>
bool sp::dim::size2d< T >::operator< ( const size2d< T > &  Other  )  const [inline]

Returns true if this width and height are smaller to the Other.

template<typename T>
bool sp::dim::size2d< T >::operator<= ( const size2d< T > &  Other  )  const [inline]

Returns true if this width and height are small or equal to the Other.

template<typename T>
bool sp::dim::size2d< T >::operator== ( const size2d< T > &  Other  )  const [inline]
template<typename T>
bool sp::dim::size2d< T >::operator> ( const size2d< T > &  Other  )  const [inline]

Returns true if this width and height are greater to the Other.

template<typename T>
bool sp::dim::size2d< T >::operator>= ( const size2d< T > &  Other  )  const [inline]

Returns true if this width and height are greater or equal to the Other.


Member Data Documentation

template<typename T>
T sp::dim::size2d< T >::Height
template<typename T>
T sp::dim::size2d< T >::Width

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines