Public Types | Public Member Functions | Static Public Member Functions

uiRect Class Reference

Inheritance diagram for uiRect:
Geom::PixRectangle< int > Geom::Rectangle< T >

List of all members.

Public Types

enum  Side { Left, Right, Top, Bottom }

Public Member Functions

 DeclareEnumUtils (Side) static inline bool isHor(Side s)
 uiRect (int l=0, int t=0, int r=0, int b=0)
 uiRect (const uiPoint &tl, const uiPoint &br)
 uiRect (const uiPoint &tl, const uiSize &sz)
 uiRect (const Geom::PixRectangle< int > &)
uiSize getPixelSize () const
uiRect selectArea (const uiRect &other) const
bool topToAtLeast (int ref)
void topTo (int ref)
bool bottomToAtLeast (int ref)
void bottomTo (int ref)
bool leftToAtLeast (int ref)
void leftTo (int ref)
void rightTo (int ref)
bool rightToAtLeast (int ref)
void expandTo (const uiRect &oth)
int hNrPics () const
int vNrPics () const
void setHNrPics (int np)
 nr of pics should be > 0
void setVNrPics (int np)
 nr of pics should be > 0
int get (Side) const
void set (Side, int)

Static Public Member Functions

static uiRect::Side across (uiRect::Side)
static uiRect::Side clockWise (uiRect::Side)

Member Enumeration Documentation

Enumerator:
Left 
Right 
Top 
Bottom 

Constructor & Destructor Documentation

uiRect::uiRect ( int  l = 0,
int  t = 0,
int  r = 0,
int  b = 0 
) [inline]
uiRect::uiRect ( const uiPoint tl,
const uiPoint br 
) [inline]
uiRect::uiRect ( const uiPoint tl,
const uiSize sz 
) [inline]
uiRect::uiRect ( const Geom::PixRectangle< int > &  pr  )  [inline]

Member Function Documentation

uiRect::Side uiRect::across ( uiRect::Side  s  )  [inline, static]
void uiRect::bottomTo ( int  ref  )  [inline]
bool uiRect::bottomToAtLeast ( int  ref  )  [inline]
uiRect::Side uiRect::clockWise ( uiRect::Side  s  )  [inline, static]
uiRect::DeclareEnumUtils ( Side   )  [inline]
void uiRect::expandTo ( const uiRect oth  )  [inline]
int uiRect::get ( uiRect::Side  s  )  const [inline]
uiSize uiRect::getPixelSize (  )  const [inline]
int uiRect::hNrPics (  )  const [inline]
void uiRect::leftTo ( int  ref  )  [inline]
bool uiRect::leftToAtLeast ( int  ref  )  [inline]
void uiRect::rightTo ( int  ref  )  [inline]
bool uiRect::rightToAtLeast ( int  ref  )  [inline]
uiRect uiRect::selectArea ( const uiRect other  )  const [inline]
void uiRect::set ( uiRect::Side  s,
int  i 
) [inline]
void uiRect::setHNrPics ( int  np  )  [inline]

nr of pics should be > 0

void uiRect::setVNrPics ( int  np  )  [inline]

nr of pics should be > 0

void uiRect::topTo ( int  ref  )  [inline]
bool uiRect::topToAtLeast ( int  ref  )  [inline]
int uiRect::vNrPics (  )  const [inline]