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

Public Member Functions

 IRect (void)
 
 IRect (int l, int t, int r, int b)
 
 IRect (const IPoint &cMin, const IPoint &cMax)
 
 IRect (const Rect &cRect)
 
 ~IRect ()
 
bool IsValid () const
 
void Invalidate (void)
 
bool DoIntersect (const IPoint &cPoint) const
 
bool DoIntersect (const IRect &cRect) const
 
bool Includes (const Rect &cRect) const
 
int Width () const
 
int Height () const
 
IPoint Size () const
 
IPoint LeftTop () const
 
IPoint RightBottom () const
 
IRect Bounds (void) const
 
IRectResize (int nLeft, int nTop, int nRight, int nBottom)
 
IRect operator+ (const IPoint &cPoint) const
 
IRect operator- (const IPoint &cPoint) const
 
IPoint operator+ (const IRect &cRect) const
 
IPoint operator- (const IRect &cRect) const
 
IRect operator& (const IRect &cRect) const
 
void operator&= (const IRect &cRect)
 
IRect operator| (const IRect &cRect) const
 
void operator|= (const IRect &cRect)
 
IRect operator| (const IPoint &cPoint) const
 
void operator|= (const IPoint &cPoint)
 
void operator+= (const IPoint &cPoint)
 
void operator-= (const IPoint &cPoint)
 
bool operator== (const IRect &cRect) const
 
bool operator!= (const IRect &cRect) const
 

Public Attributes

int left
 
int top
 
int right
 
int bottom
 

Detailed Description

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

Constructor & Destructor Documentation

os::IRect::IRect ( void  )
inline
os::IRect::IRect ( int  l,
int  t,
int  r,
int  b 
)
inline
os::IRect::IRect ( const IPoint cMin,
const IPoint cMax 
)
inline

References os::IPoint::x, and os::IPoint::y.

os::IRect::IRect ( const Rect cRect)
inline
os::IRect::~IRect ( )
inline

Member Function Documentation

IRect os::IRect::Bounds ( void  ) const
inline
bool os::IRect::DoIntersect ( const IPoint cPoint) const
inline

References os::IPoint::x, and os::IPoint::y.

bool os::IRect::DoIntersect ( const IRect cRect) const
inline

References bottom, left, right, and top.

int os::IRect::Height ( void  ) const
inline

Referenced by os::BitmapImage::Load().

bool os::IRect::Includes ( const Rect cRect) const
inline
void os::IRect::Invalidate ( void  )
inline
bool os::IRect::IsValid ( void  ) const
inline
IPoint os::IRect::LeftTop ( ) const
inline

Referenced by os::Region::Region().

bool os::IRect::operator!= ( const IRect cRect) const
inline

References bottom, left, right, and top.

IRect os::IRect::operator& ( const IRect cRect) const
inline

References bottom, left, right, and top.

void os::IRect::operator&= ( const IRect cRect)
inline

References bottom, left, right, and top.

IRect os::IRect::operator+ ( const IPoint cPoint) const
inline

References os::IPoint::x, and os::IPoint::y.

IPoint os::IRect::operator+ ( const IRect cRect) const
inline

References left, and top.

void os::IRect::operator+= ( const IPoint cPoint)
inline

References os::IPoint::x, and os::IPoint::y.

IRect os::IRect::operator- ( const IPoint cPoint) const
inline

References os::IPoint::x, and os::IPoint::y.

IPoint os::IRect::operator- ( const IRect cRect) const
inline

References left, and top.

void os::IRect::operator-= ( const IPoint cPoint)
inline

References os::IPoint::x, and os::IPoint::y.

bool os::IRect::operator== ( const IRect cRect) const
inline

References bottom, left, right, and top.

IRect os::IRect::operator| ( const IRect cRect) const
inline

References bottom, left, right, and top.

IRect os::IRect::operator| ( const IPoint cPoint) const
inline

References os::IPoint::x, and os::IPoint::y.

void os::IRect::operator|= ( const IRect cRect)
inline

References bottom, left, right, and top.

void os::IRect::operator|= ( const IPoint cPoint)
inline

References os::IPoint::x, and os::IPoint::y.

IRect& os::IRect::Resize ( int  nLeft,
int  nTop,
int  nRight,
int  nBottom 
)
inline
IPoint os::IRect::RightBottom ( ) const
inline
IPoint os::IRect::Size ( ) const
inline
int os::IRect::Width ( void  ) const
inline

Referenced by os::BitmapImage::Load().

Member Data Documentation

int os::IRect::bottom
int os::IRect::left
int os::IRect::right
int os::IRect::top