Pyro higlevel API
|
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) |
ClipRect * | AddRect (const IRect &cRect) |
Region * | Clone (const IRect &cRectangle, bool bNormalize) |
void | Optimize () |
IRect | GetBounds () const |
Static Public Member Functions | |
static void | FreeClipRect (ClipRect *pcRect) |
static ClipRect * | AllocClipRect () |
Public Attributes | |
ClipRectList | m_cRects |
Region::Region | ( | ) |
Region::~Region | ( | ) |
References os::ClipRectList::AddRect(), AllocClipRect(), os::ClipRect::m_cBounds, and m_cRects.
|
static |
References os::Locker::Lock(), and os::Locker::Unlock().
Referenced by AddRect(), Exclude(), Intersect(), and Region().
void Region::Clear | ( | void | ) |
References os::ClipRectList::Clear(), and m_cRects.
Referenced by Intersect(), and Set().
void Region::Exclude | ( | const IRect & | cRect | ) |
References os::ClipRectList::AddRect(), AllocClipRect(), os::IRect::bottom, FreeClipRect(), os::IRect::IsValid(), os::IRect::left, os::ClipRect::m_cBounds, m_cRects, os::ClipRectList::m_pcFirst, os::ClipRectList::m_pcLast, os::ClipRectList::RemoveHead(), os::IRect::right, os::ClipRectList::StealRects(), and os::IRect::top.
void Region::Exclude | ( | const Region & | cReg | ) |
References ENUMCLIPLIST, Exclude(), os::ClipRect::m_cBounds, and m_cRects.
\return |
References ENUMCLIPLIST, Exclude(), os::ClipRect::m_cBounds, and m_cRects.
|
static |
References os::Locker::Lock(), and os::Locker::Unlock().
Referenced by os::ClipRectList::Clear(), Exclude(), Optimize(), and os::ClipRectList::~ClipRectList().
IRect Region::GetBounds | ( | void | ) | const |
References ENUMCLIPLIST, os::ClipRect::m_cBounds, and m_cRects.
|
inline |
Referenced by os::View::SetDrawingRegion(), and os::View::SetShapeRegion().
void Region::Include | ( | const IRect & | cRect | ) |
References ENUMCLIPLIST, Exclude(), os::ClipRect::m_cBounds, m_cRects, and os::ClipRectList::StealRects().
void Region::Intersect | ( | const Region & | cReg | ) |
\return |
References os::ClipRectList::AddRect(), AllocClipRect(), Clear(), ENUMCLIPLIST, os::IRect::IsValid(), os::ClipRect::m_cBounds, m_cRects, and os::ClipRectList::StealRects().
|
inline |
void Region::Optimize | ( | ) |
References ENUMCLIPLIST, FreeClipRect(), os::ClipRectList::GetCount(), m_cRects, and os::ClipRectList::RemoveRect().
void Region::Set | ( | const Region & | cRect | ) |
References AddRect(), Clear(), ENUMCLIPLIST, os::ClipRect::m_cBounds, and m_cRects.
ClipRectList os::Region::m_cRects |
Referenced by AddRect(), Clear(), Exclude(), GetBounds(), Include(), Intersect(), Optimize(), Region(), Set(), os::View::SetDrawingRegion(), and os::View::SetShapeRegion().