xbmc
Public Types | Public Member Functions | Public Attributes | List of all members
CRectGen< T > Class Template Reference
Collaboration diagram for CRectGen< T >:
Collaboration graph
[legend]

Public Types

typedef CRectGen< T > this_type
 
typedef CPointGen< T > point_type
 
typedef CSizeGen< T > size_type
 

Public Member Functions

constexpr CRectGen (T left, T top, T right, T bottom)
 
constexpr CRectGen (const point_type &p1, const point_type &p2)
 
constexpr CRectGen (const point_type &origin, const size_type &size)
 
template<class U >
constexpr CRectGen (const CRectGen< U > &rhs)
 
void SetRect (T left, T top, T right, T bottom)
 
constexpr bool PtInRect (const point_type &point) const
 
this_typeoperator-= (const point_type &point) XBMC_FORCE_INLINE
 
constexpr this_type operator- (const point_type &point) const
 
this_typeoperator+= (const point_type &point) XBMC_FORCE_INLINE
 
constexpr this_type operator+ (const point_type &point) const
 
this_typeoperator-= (const size_type &size)
 
constexpr this_type operator- (const size_type &size) const
 
this_typeoperator+= (const size_type &size)
 
constexpr this_type operator+ (const size_type &size) const
 
this_typeIntersect (const this_type &rect)
 
this_typeUnion (const this_type &rect)
 
constexpr bool IsEmpty () const XBMC_FORCE_INLINE
 
constexpr point_type P1 () const XBMC_FORCE_INLINE
 
constexpr point_type P2 () const XBMC_FORCE_INLINE
 
constexpr T Width () const XBMC_FORCE_INLINE
 
constexpr T Height () const XBMC_FORCE_INLINE
 
constexpr T Area () const XBMC_FORCE_INLINE
 
size_type ToSize () const
 
std::vector< this_typeSubtractRect (this_type splitterRect)
 
std::vector< this_typeSubtractRects (std::vector< this_type > intersectionList)
 
void GetQuad (point_type(&points)[4])
 

Public Attributes

x1 {}
 
y1 {}
 
x2 {}
 
y2 {}
 

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