Pyro higlevel API
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
os::Region Class Reference

Public Member Functions

 Region ()
 
 Region (const IRect &cRect)
 
 Region (const Region &cReg)
 
 Region (const Region &cReg, const IRect &cRect, bool bNormalize)
 
 ~Region ()
 
void Set (const IRect &cRect)
 
void Set (const Region &cRect)
 
void Clear (void)
 
bool IsEmpty () const
 
int GetClipCount () const
 
void Include (const IRect &cRect)
 /since 0.3.7 More...
 
void Intersect (const Region &cReg)
 
void Intersect (const Region &cReg, const IPoint &cOffset)
 
void Exclude (const IRect &cRect)
 
void Exclude (const Region &cReg)
 
void Exclude (const Region &cReg, const IPoint &cOffset)
 
ClipRectAddRect (const IRect &cRect)
 
RegionClone (const IRect &cRectangle, bool bNormalize)
 
void Optimize ()
 
IRect GetBounds () const
 

Static Public Member Functions

static void FreeClipRect (ClipRect *pcRect)
 
static ClipRectAllocClipRect ()
 

Public Attributes

ClipRectList m_cRects
 

Detailed Description

Description:
See Also
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

Constructor & Destructor Documentation

Region::Region ( )
Region::Region ( const IRect cRect)

References AddRect().

Region::Region ( const Region cReg)

References Set().

Region::Region ( const Region cReg,
const IRect cRect,
bool  bNormalize 
)
Region::~Region ( )

Member Function Documentation

ClipRect * Region::AddRect ( const IRect cRect)
ClipRect * Region::AllocClipRect ( )
static
void Region::Clear ( void  )

References os::ClipRectList::Clear(), and m_cRects.

Referenced by Intersect(), and Set().

Region* os::Region::Clone ( const IRect cRectangle,
bool  bNormalize 
)
void Region::Exclude ( const IRect cRect)
void Region::Exclude ( const Region cReg)
void Region::Exclude ( const Region cReg,
const IPoint cOffset 
)
Description:
Note:
Warning:
Parameters
\return
Error codes:
Since
0.3.7
See Also
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

References ENUMCLIPLIST, Exclude(), os::ClipRect::m_cBounds, and m_cRects.

void Region::FreeClipRect ( ClipRect pcRect)
static
IRect Region::GetBounds ( void  ) const
int os::Region::GetClipCount ( ) const
inline
void Region::Include ( const IRect cRect)
void Region::Intersect ( const Region cReg)
void Region::Intersect ( const Region cReg,
const IPoint cOffset 
)
Description:
Note:
Warning:
Parameters
\return
Error codes:
Since
0.3.7
See Also
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

References os::ClipRectList::AddRect(), AllocClipRect(), Clear(), ENUMCLIPLIST, os::IRect::IsValid(), os::ClipRect::m_cBounds, m_cRects, and os::ClipRectList::StealRects().

bool os::Region::IsEmpty ( void  ) const
inline
void Region::Optimize ( )
void Region::Set ( const IRect cRect)

References AddRect(), and Clear().

Referenced by Region().

void Region::Set ( const Region cRect)

Member Data Documentation

ClipRectList os::Region::m_cRects