OGRE  1.12.13
Object-Oriented Graphics Rendering Engine
Ogre::TRect< T > Struct Template Reference

#include <OgreCommon.h>

Public Member Functions

 TRect ()
 
 TRect (T const &l, T const &t, T const &r, T const &b)
 
 TRect (TRect const &o)
 
height () const
 
TRect intersect (const TRect &rhs) const
 Returns the intersection of the two rectangles. More...
 
bool isNull () const
 
TRectmerge (const TRect &rhs)
 
bool operator!= (const TRect &rhs) const
 
TRectoperator= (TRect const &o)
 
bool operator== (const TRect &rhs) const
 
void setNull ()
 
width () const
 

Public Attributes

bottom
 
left
 
right
 
top
 

Constructor & Destructor Documentation

◆ TRect() [1/3]

template<typename T >
Ogre::TRect< T >::TRect ( )
inline

◆ TRect() [2/3]

template<typename T >
Ogre::TRect< T >::TRect ( T const &  l,
T const &  t,
T const &  r,
T const &  b 
)
inline

◆ TRect() [3/3]

template<typename T >
Ogre::TRect< T >::TRect ( TRect< T > const &  o)
inline

Member Function Documentation

◆ operator=()

template<typename T >
TRect& Ogre::TRect< T >::operator= ( TRect< T > const &  o)
inline

◆ width()

template<typename T >
T Ogre::TRect< T >::width ( ) const
inline

◆ height()

template<typename T >
T Ogre::TRect< T >::height ( ) const
inline

◆ isNull()

template<typename T >
bool Ogre::TRect< T >::isNull ( ) const
inline

◆ setNull()

template<typename T >
void Ogre::TRect< T >::setNull ( )
inline

◆ merge()

template<typename T >
TRect& Ogre::TRect< T >::merge ( const TRect< T > &  rhs)
inline

◆ intersect()

template<typename T >
TRect Ogre::TRect< T >::intersect ( const TRect< T > &  rhs) const
inline

Returns the intersection of the two rectangles.

Note that the rectangles extend downwards. I.e. a valid box will have "right > left" and "bottom > top".

Parameters
rhsAnother rectangle.
Returns
The intersection of the two rectangles. Zero size if they don't intersect.

◆ operator==()

template<typename T >
bool Ogre::TRect< T >::operator== ( const TRect< T > &  rhs) const
inline

◆ operator!=()

template<typename T >
bool Ogre::TRect< T >::operator!= ( const TRect< T > &  rhs) const
inline

Member Data Documentation

◆ left

◆ top

◆ right

◆ bottom


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