Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TRect< T > Class Template Reference

#include <trect.h>

Public Member Functions

 TRect (T x=0, T y=0, T w=0, T h=0)
 
 TRect (TPoint2D< T > const &point, T w, T h)
 
bool operator== (TRect< T > const &rvalue) const
 
bool operator!= (TRect< T > const &rvalue) const
 
TRect< T > const & operator+= (TPoint2D< T > const &point)
 
TRect< T > const & operator-= (TPoint2D< T > const &point)
 
TRect< T > const operator+ (TPoint2D< T > const &point)
 
TRect< T > const operator- (TPoint2D< T > const &point)
 
TRect< T > const Intersect (TRect< T > const &rectangle, T *x=NULL, T *y=NULL) const
 
TRect< T > const Union (TRect< T > const &rect2) const
 
TRect< T > const Bias_To (TRect< T > const &rect) const
 
bool Is_Overlapping (TRect< T > const &rect) const
 
bool Is_Valid (void) const
 
int Size (void) const
 
TPoint2D< T > Top_Left (void) const
 
TPoint2D< T > Top_Right (void) const
 
TPoint2D< T > Bottom_Left (void) const
 
TPoint2D< T > Bottom_Right (void) const
 
bool Is_Point_Within (TPoint2D< T > const &point) const
 
 TRect (void)
 
 TRect (T x, T y, T w, T h)
 
 TRect (TPoint2D< T > const &point, T w, T h)
 
bool operator== (TRect< T > const &rvalue) const
 
bool operator!= (TRect< T > const &rvalue) const
 
TRect< T > const & operator+= (TPoint2D< T > const &point)
 
TRect< T > const & operator-= (TPoint2D< T > const &point)
 
TRect< T > const operator+ (TPoint2D< T > const &point)
 
TRect< T > const operator- (TPoint2D< T > const &point)
 
TRect< T > const Bias_To (TRect< T > const &rect) const
 
void Set (T x, T y, T w, T h)
 
bool Is_Overlapping (TRect< T > const &rect) const
 
bool Is_Valid (void) const
 
 __declspec (property(get=Is_Valid)) bool IsValid
 
int Size (void) const
 
TPoint2D< T > Top_Left (void) const
 
 __declspec (property(get=Top_Left)) TPoint2D< T > TopLeft
 
TPoint2D< T > Top_Right (void) const
 
 __declspec (property(get=Top_Right)) TPoint2D< T > TopRight
 
TPoint2D< T > Bottom_Left (void) const
 
 __declspec (property(get=Bottom_Left)) TPoint2D< T > BottomLeft
 
TPoint2D< T > Bottom_Right (void) const
 
 __declspec (property(get=Bottom_Right)) TPoint2D< T > BottomRight
 
bool Is_Point_Within (TPoint2D< T > const &point) const
 

Public Attributes

X
 
Y
 
Width
 
Height
 

Detailed Description

template<class T>
class TRect< T >

Definition at line 54 of file RECT.h.

Constructor & Destructor Documentation

◆ TRect() [1/5]

template<class T>
TRect< T >::TRect ( T x = 0,
T y = 0,
T w = 0,
T h = 0 )
inline

Definition at line 53 of file trect.h.

◆ TRect() [2/5]

template<class T>
TRect< T >::TRect ( TPoint2D< T > const & point,
T w,
T h )
inline

Definition at line 54 of file trect.h.

◆ TRect() [3/5]

template<class T>
TRect< T >::TRect ( void )
inline

Definition at line 57 of file RECT.h.

◆ TRect() [4/5]

template<class T>
TRect< T >::TRect ( T x,
T y,
T w,
T h )
inline

Definition at line 58 of file RECT.h.

◆ TRect() [5/5]

template<class T>
TRect< T >::TRect ( TPoint2D< T > const & point,
T w,
T h )
inline

Definition at line 59 of file RECT.h.

Member Function Documentation

◆ __declspec() [1/5]

template<class T>
TRect< T >::__declspec ( property(get=Bottom_Left) )

◆ __declspec() [2/5]

template<class T>
TRect< T >::__declspec ( property(get=Bottom_Right) )

◆ __declspec() [3/5]

template<class T>
TRect< T >::__declspec ( property(get=Is_Valid) )

◆ __declspec() [4/5]

template<class T>
TRect< T >::__declspec ( property(get=Top_Left) )

◆ __declspec() [5/5]

template<class T>
TRect< T >::__declspec ( property(get=Top_Right) )

◆ Bias_To() [1/2]

template<class T>
TRect< T > const TRect< T >::Bias_To ( TRect< T > const & rect) const
inline

Definition at line 72 of file trect.h.

◆ Bias_To() [2/2]

template<class T>
TRect< T > const TRect< T >::Bias_To ( TRect< T > const & rect) const
inline

Definition at line 74 of file RECT.h.

◆ Bottom_Left() [1/2]

template<class T>
TPoint2D< T > TRect< T >::Bottom_Left ( void ) const
inline

Definition at line 95 of file trect.h.

◆ Bottom_Left() [2/2]

template<class T>
TPoint2D< T > TRect< T >::Bottom_Left ( void ) const
inline

Definition at line 105 of file RECT.h.

◆ Bottom_Right() [1/2]

template<class T>
TPoint2D< T > TRect< T >::Bottom_Right ( void ) const
inline

Definition at line 96 of file trect.h.

◆ Bottom_Right() [2/2]

template<class T>
TPoint2D< T > TRect< T >::Bottom_Right ( void ) const
inline

Definition at line 108 of file RECT.h.

◆ Intersect()

template<class T>
TRect< T > const TRect< T >::Intersect ( TRect< T > const & rectangle,
T * x = NULL,
T * y = NULL ) const

Definition at line 121 of file trect.h.

◆ Is_Overlapping() [1/2]

template<class T>
bool TRect< T >::Is_Overlapping ( TRect< T > const & rect) const
inline

Definition at line 77 of file trect.h.

◆ Is_Overlapping() [2/2]

template<class T>
bool TRect< T >::Is_Overlapping ( TRect< T > const & rect) const
inline

Definition at line 82 of file RECT.h.

◆ Is_Point_Within() [1/2]

template<class T>
bool TRect< T >::Is_Point_Within ( TPoint2D< T > const & point) const
inline

Definition at line 101 of file trect.h.

◆ Is_Point_Within() [2/2]

template<class T>
bool TRect< T >::Is_Point_Within ( TPoint2D< T > const & point) const
inline

Definition at line 115 of file RECT.h.

◆ Is_Valid() [1/2]

template<class T>
bool TRect< T >::Is_Valid ( void ) const
inline

Definition at line 82 of file trect.h.

◆ Is_Valid() [2/2]

template<class T>
bool TRect< T >::Is_Valid ( void ) const
inline

Definition at line 87 of file RECT.h.

◆ operator!=() [1/2]

template<class T>
bool TRect< T >::operator!= ( TRect< T > const & rvalue) const
inline

Definition at line 58 of file trect.h.

◆ operator!=() [2/2]

template<class T>
bool TRect< T >::operator!= ( TRect< T > const & rvalue) const
inline

Definition at line 63 of file RECT.h.

◆ operator+() [1/2]

template<class T>
TRect< T > const TRect< T >::operator+ ( TPoint2D< T > const & point)
inline

Definition at line 63 of file trect.h.

◆ operator+() [2/2]

template<class T>
TRect< T > const TRect< T >::operator+ ( TPoint2D< T > const & point)
inline

Definition at line 68 of file RECT.h.

◆ operator+=() [1/2]

template<class T>
TRect< T > const & TRect< T >::operator+= ( TPoint2D< T > const & point)
inline

Definition at line 61 of file trect.h.

◆ operator+=() [2/2]

template<class T>
TRect< T > const & TRect< T >::operator+= ( TPoint2D< T > const & point)
inline

Definition at line 66 of file RECT.h.

◆ operator-() [1/2]

template<class T>
TRect< T > const TRect< T >::operator- ( TPoint2D< T > const & point)
inline

Definition at line 64 of file trect.h.

◆ operator-() [2/2]

template<class T>
TRect< T > const TRect< T >::operator- ( TPoint2D< T > const & point)
inline

Definition at line 69 of file RECT.h.

◆ operator-=() [1/2]

template<class T>
TRect< T > const & TRect< T >::operator-= ( TPoint2D< T > const & point)
inline

Definition at line 62 of file trect.h.

◆ operator-=() [2/2]

template<class T>
TRect< T > const & TRect< T >::operator-= ( TPoint2D< T > const & point)
inline

Definition at line 67 of file RECT.h.

◆ operator==() [1/2]

template<class T>
bool TRect< T >::operator== ( TRect< T > const & rvalue) const
inline

Definition at line 57 of file trect.h.

◆ operator==() [2/2]

template<class T>
bool TRect< T >::operator== ( TRect< T > const & rvalue) const
inline

Definition at line 62 of file RECT.h.

◆ Set()

template<class T>
void TRect< T >::Set ( T x,
T y,
T w,
T h )
inline

Definition at line 77 of file RECT.h.

◆ Size() [1/2]

template<class T>
int TRect< T >::Size ( void ) const
inline

Definition at line 88 of file trect.h.

◆ Size() [2/2]

template<class T>
int TRect< T >::Size ( void ) const
inline

Definition at line 94 of file RECT.h.

◆ Top_Left() [1/2]

template<class T>
TPoint2D< T > TRect< T >::Top_Left ( void ) const
inline

Definition at line 93 of file trect.h.

◆ Top_Left() [2/2]

template<class T>
TPoint2D< T > TRect< T >::Top_Left ( void ) const
inline

Definition at line 99 of file RECT.h.

◆ Top_Right() [1/2]

template<class T>
TPoint2D< T > TRect< T >::Top_Right ( void ) const
inline

Definition at line 94 of file trect.h.

◆ Top_Right() [2/2]

template<class T>
TPoint2D< T > TRect< T >::Top_Right ( void ) const
inline

Definition at line 102 of file RECT.h.

◆ Union()

template<class T>
TRect< T > const TRect< T >::Union ( TRect< T > const & rect2) const

Definition at line 182 of file trect.h.

Member Data Documentation

◆ Height

template<class T>
T TRect< T >::Height

Definition at line 116 of file trect.h.

◆ Width

template<class T>
T TRect< T >::Width

Definition at line 115 of file trect.h.

◆ X

template<class T>
T TRect< T >::X

Definition at line 108 of file trect.h.

◆ Y

template<class T>
T TRect< T >::Y

Definition at line 109 of file trect.h.


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