OGRE 14.3
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
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)
 
T height () const
 
TRect intersect (const TRect &rhs) const
 Returns the intersection of the two rectangles.
 
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 ()
 
T width () const
 

Public Attributes

T bottom
 
T left
 
T right
 
T 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=()

◆ width()

◆ height()

◆ isNull()

◆ setNull()

◆ merge()

◆ 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.

References Ogre::TRect< T >::bottom, Ogre::TRect< T >::isNull(), Ogre::TRect< T >::left, Ogre::TRect< T >::right, and Ogre::TRect< T >::top.

◆ 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: