GUIDOLib  1.7.7
Guido Engine Internal Documentation
Public Member Functions | Public Attributes | List of all members
TRect< T > Class Template Reference

Public Member Functions

 TRect ()
 
 TRect (T inLeft, T inTop, T inRight, T inBottom)
 
void Set (T inLeft, T inTop, T inRight, T inBottom)
 
void SetValid (T inLeft, T inTop, T inRight, T inBottom)
 
void Set (const TRect &in)
 
bool IsValid () const
 
Width () const
 
Height () const
 
void SetDims (T inWidth, T inHeight)
 
void SetWidth (T in)
 
void SetHeight (T in)
 
void SetPos (T x, T y)
 
void SetXPos (T inXPos)
 
void SetYPos (T inYPos)
 
void GetPos (T *x, T *y)
 
void GetXPos (T *inXPos)
 
void GetYPos (T *inYPos)
 
void GetPos (T *x1, T *y1, T *x2, T *y2)
 
void ShiftX (T inOffset)
 
void ShiftY (T inOffset)
 
void Shift (T x, T y)
 
void Scale (T x, T y)
 
void Expand (T val)
 
void Magnify (float ratio)
 
void Zoom (T offset)
 
template<typename S >
TRect< T > & operator+= (const S &inVector)
 
template<typename S >
bool operator== (const S &inRect) const
 
template<typename S >
bool operator< (const S &inRect) const
 
template<typename S >
void CalcMiddle (S *outVector)
 
void CalcMiddle (T *oX, T *oY)
 
template<typename S >
bool Contains (const S &inVector) const
 
bool Contains (const TRect< T > &in) const
 
bool Contains (T inX, T inY) const
 
template<typename S >
bool Collides (const S &inRect) const
 
template<typename S >
void Merge (const S &inRect)
 
template<typename S >
void Intersect (const S &inRect)
 
DistanceToPoint (T x, T y)
 
void print (std::ostream &os) const
 

Public Attributes

left
 
top
 
right
 
bottom
 

Constructor & Destructor Documentation

◆ TRect() [1/2]

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

◆ TRect() [2/2]

template<typename T>
TRect< T >::TRect ( inLeft,
inTop,
inRight,
inBottom 
)
inline

Member Function Documentation

◆ CalcMiddle() [1/2]

template<typename T>
template<typename S >
void TRect< T >::CalcMiddle ( S *  outVector)
inline

◆ CalcMiddle() [2/2]

template<typename T>
void TRect< T >::CalcMiddle ( T *  oX,
T *  oY 
)
inline

◆ Collides()

template<typename T>
template<typename S >
bool TRect< T >::Collides ( const S &  inRect) const
inline

◆ Contains() [1/3]

template<typename T>
template<typename S >
bool TRect< T >::Contains ( const S &  inVector) const
inline

◆ Contains() [2/3]

template<typename T>
bool TRect< T >::Contains ( const TRect< T > &  in) const
inline

◆ Contains() [3/3]

template<typename T>
bool TRect< T >::Contains ( inX,
inY 
) const
inline

◆ DistanceToPoint()

template<typename T>
T TRect< T >::DistanceToPoint ( x,
y 
)
inline

◆ Expand()

template<typename T>
void TRect< T >::Expand ( val)
inline

◆ GetPos() [1/2]

template<typename T>
void TRect< T >::GetPos ( T *  x,
T *  y 
)
inline

◆ GetPos() [2/2]

template<typename T>
void TRect< T >::GetPos ( T *  x1,
T *  y1,
T *  x2,
T *  y2 
)
inline

◆ GetXPos()

template<typename T>
void TRect< T >::GetXPos ( T *  inXPos)
inline

◆ GetYPos()

template<typename T>
void TRect< T >::GetYPos ( T *  inYPos)
inline

◆ Height()

template<typename T>
T TRect< T >::Height ( ) const
inline

◆ Intersect()

template<typename T>
template<typename S >
void TRect< T >::Intersect ( const S &  inRect)
inline

◆ IsValid()

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

◆ Magnify()

template<typename T>
void TRect< T >::Magnify ( float  ratio)
inline

◆ Merge()

template<typename T>
template<typename S >
void TRect< T >::Merge ( const S &  inRect)
inline

◆ operator+=()

template<typename T>
template<typename S >
TRect<T>& TRect< T >::operator+= ( const S &  inVector)
inline

◆ operator<()

template<typename T>
template<typename S >
bool TRect< T >::operator< ( const S &  inRect) const
inline

◆ operator==()

template<typename T>
template<typename S >
bool TRect< T >::operator== ( const S &  inRect) const
inline

◆ print()

template<typename T>
void TRect< T >::print ( std::ostream &  os) const
inline

◆ Scale()

template<typename T>
void TRect< T >::Scale ( x,
y 
)
inline

◆ Set() [1/2]

template<typename T>
void TRect< T >::Set ( const TRect< T > &  in)
inline

◆ Set() [2/2]

template<typename T>
void TRect< T >::Set ( inLeft,
inTop,
inRight,
inBottom 
)
inline

◆ SetDims()

template<typename T>
void TRect< T >::SetDims ( inWidth,
inHeight 
)
inline

◆ SetHeight()

template<typename T>
void TRect< T >::SetHeight ( in)
inline

◆ SetPos()

template<typename T>
void TRect< T >::SetPos ( x,
y 
)
inline

◆ SetValid()

template<typename T>
void TRect< T >::SetValid ( inLeft,
inTop,
inRight,
inBottom 
)
inline

◆ SetWidth()

template<typename T>
void TRect< T >::SetWidth ( in)
inline

◆ SetXPos()

template<typename T>
void TRect< T >::SetXPos ( inXPos)
inline

◆ SetYPos()

template<typename T>
void TRect< T >::SetYPos ( inYPos)
inline

◆ Shift()

template<typename T>
void TRect< T >::Shift ( x,
y 
)
inline

◆ ShiftX()

template<typename T>
void TRect< T >::ShiftX ( inOffset)
inline

◆ ShiftY()

template<typename T>
void TRect< T >::ShiftY ( inOffset)
inline

◆ Width()

template<typename T>
T TRect< T >::Width ( ) const
inline

◆ Zoom()

template<typename T>
void TRect< T >::Zoom ( offset)
inline

Member Data Documentation

◆ bottom

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

◆ left

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

◆ right

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

◆ top

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

Guido Project Copyright © 2019 Grame-CNCM