MyGUI  3.0.1
Public Member Functions | Static Public Member Functions | Data Fields | Friends
MyGUI::types::TRect< T > Struct Template Reference

#include <MyGUI_TRect.h>

+ Inheritance diagram for MyGUI::types::TRect< T >:

Public Member Functions

 TRect ()
 TRect (T const &_left, T const &_top, T const &_right, T const &_bottom)
 TRect (TRect const &o)
TRectoperator-= (TRect const &o)
TRectoperator+= (TRect const &o)
TRect operator- (TRect const &o) const
TRect operator+ (TRect const &o) const
TRectoperator= (TRect const &o)
template<typename U >
TRectoperator= (TRect< U > const &o)
bool operator== (TRect const &o) const
bool operator!= (TRect const &o) const
width () const
height () const
void clear ()
void set (T const &_left, T const &_top, T const &_right, T const &_bottom)
void swap (TRect &_value)
bool empty () const
bool inside (const TRect< T > &_value) const
bool intersect (const TRect< T > &_value) const
bool inside (const TPoint< T > &_value) const
std::string print () const

Static Public Member Functions

static TRect< T > parse (const std::string &_value)

Data Fields

left
top
right
bottom

Friends

std::ostream & operator<< (std::ostream &_stream, const TRect< T > &_value)
std::istream & operator>> (std::istream &_stream, TRect< T > &_value)

Detailed Description

template<typename T>
struct MyGUI::types::TRect< T >

Definition at line 33 of file MyGUI_TRect.h.

Constructor & Destructor Documentation

template<typename T>
MyGUI::types::TRect< T >::TRect ( )
inline

Definition at line 37 of file MyGUI_TRect.h.

template<typename T>
MyGUI::types::TRect< T >::TRect ( T const &  _left,
T const &  _top,
T const &  _right,
T const &  _bottom 
)
inline

Definition at line 38 of file MyGUI_TRect.h.

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

Definition at line 39 of file MyGUI_TRect.h.

Member Function Documentation

template<typename T>
void MyGUI::types::TRect< T >::clear ( )
inline

Definition at line 108 of file MyGUI_TRect.h.

template<typename T>
bool MyGUI::types::TRect< T >::empty ( ) const
inline

Definition at line 128 of file MyGUI_TRect.h.

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

Definition at line 103 of file MyGUI_TRect.h.

template<typename T>
bool MyGUI::types::TRect< T >::inside ( const TRect< T > &  _value) const
inline

Definition at line 133 of file MyGUI_TRect.h.

template<typename T>
bool MyGUI::types::TRect< T >::inside ( const TPoint< T > &  _value) const
inline

Definition at line 143 of file MyGUI_TRect.h.

template<typename T>
bool MyGUI::types::TRect< T >::intersect ( const TRect< T > &  _value) const
inline

Definition at line 138 of file MyGUI_TRect.h.

template<typename T>
bool MyGUI::types::TRect< T >::operator!= ( TRect< T > const &  o) const
inline

Definition at line 93 of file MyGUI_TRect.h.

template<typename T>
TRect MyGUI::types::TRect< T >::operator+ ( TRect< T > const &  o) const
inline

Definition at line 64 of file MyGUI_TRect.h.

template<typename T>
TRect& MyGUI::types::TRect< T >::operator+= ( TRect< T > const &  o)
inline

Definition at line 50 of file MyGUI_TRect.h.

template<typename T>
TRect MyGUI::types::TRect< T >::operator- ( TRect< T > const &  o) const
inline

Definition at line 59 of file MyGUI_TRect.h.

template<typename T>
TRect& MyGUI::types::TRect< T >::operator-= ( TRect< T > const &  o)
inline

Definition at line 41 of file MyGUI_TRect.h.

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

Definition at line 69 of file MyGUI_TRect.h.

template<typename T>
template<typename U >
TRect& MyGUI::types::TRect< T >::operator= ( TRect< U > const &  o)
inline

Definition at line 79 of file MyGUI_TRect.h.

template<typename T>
bool MyGUI::types::TRect< T >::operator== ( TRect< T > const &  o) const
inline

Definition at line 88 of file MyGUI_TRect.h.

template<typename T>
static TRect<T> MyGUI::types::TRect< T >::parse ( const std::string &  _value)
inlinestatic

Definition at line 155 of file MyGUI_TRect.h.

template<typename T>
std::string MyGUI::types::TRect< T >::print ( ) const
inline

Definition at line 148 of file MyGUI_TRect.h.

template<typename T>
void MyGUI::types::TRect< T >::set ( T const &  _left,
T const &  _top,
T const &  _right,
T const &  _bottom 
)
inline

Definition at line 113 of file MyGUI_TRect.h.

template<typename T>
void MyGUI::types::TRect< T >::swap ( TRect< T > &  _value)
inline

Definition at line 121 of file MyGUI_TRect.h.

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

Definition at line 98 of file MyGUI_TRect.h.

Friends And Related Function Documentation

template<typename T>
std::ostream& operator<< ( std::ostream &  _stream,
const TRect< T > &  _value 
)
friend

Definition at line 173 of file MyGUI_TRect.h.

template<typename T>
std::istream& operator>> ( std::istream &  _stream,
TRect< T > &  _value 
)
friend

Definition at line 179 of file MyGUI_TRect.h.

Field Documentation

template<typename T>
T MyGUI::types::TRect< T >::bottom

Definition at line 35 of file MyGUI_TRect.h.

template<typename T>
T MyGUI::types::TRect< T >::left

Definition at line 35 of file MyGUI_TRect.h.

template<typename T>
T MyGUI::types::TRect< T >::right

Definition at line 35 of file MyGUI_TRect.h.

template<typename T>
T MyGUI::types::TRect< T >::top

Definition at line 35 of file MyGUI_TRect.h.


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