VSTGUI  4.4
Graphical User Interface Framework not only for VST plugins
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
CRect Struct Reference

Rect structure. More...

Public Member Functions

 CRect (CCoord left=0, CCoord top=0, CCoord right=0, CCoord bottom=0)
 
 CRect (const CRect &r)
 
 CRect (const CPoint &origin, const CPoint &size)
 
CRectoperator() (CCoord left, CCoord top, CCoord right, CCoord bottom)
 
bool operator!= (const CRect &other) const
 
bool operator== (const CRect &other) const
 
CCoord width () const
 
CCoord height () const
 
CCoord getWidth () const
 
CCoord getHeight () const
 
CRectsetWidth (CCoord width)
 
CRectsetHeight (CCoord height)
 
CPoint getTopLeft () const
 
CPoint getTopRight () const
 
CPoint getBottomLeft () const
 
CPoint getBottomRight () const
 
CRectsetTopLeft (const CPoint &inPoint)
 
CRectsetTopRight (const CPoint &inPoint)
 
CRectsetBottomLeft (const CPoint &inPoint)
 
CRectsetBottomRight (const CPoint &inPoint)
 
CPoint getCenter () const
 
CPoint getSize () const
 
CRectsetSize (const CPoint &size)
 
CRectoffset (CCoord x, CCoord y)
 
CRectinset (CCoord deltaX, CCoord deltaY)
 
CRectextend (CCoord deltaX, CCoord deltaY)
 
CRectmoveTo (CCoord x, CCoord y)
 
CRectinset (const CPoint &p)
 
CRectextend (const CPoint &p)
 
CRectmoveTo (const CPoint &p)
 
CRectoffset (const CPoint &p)
 
CRectoffsetInverse (const CPoint &p)
 
bool pointInside (const CPoint &where) const
 Checks if point is inside this rect. More...
 
bool isEmpty () const
 
bool rectOverlap (const CRect &rect) const
 
CRectbound (const CRect &rect)
 
CRectunite (const CRect &rect)
 
CRectnormalize ()
 
CRectoriginize ()
 
CRectcenterInside (const CRect &r)
 moves this rect to the center of r More...
 
CRectmakeIntegral ()
 

Public Attributes

CCoord left
 
CCoord top
 
CCoord right
 
CCoord bottom
 

Detailed Description

Rect structure.

Constructor & Destructor Documentation

CRect ( CCoord  left = 0,
CCoord  top = 0,
CCoord  right = 0,
CCoord  bottom = 0 
)
inline
CRect ( const CRect r)
inline
CRect ( const CPoint origin,
const CPoint size 
)
inline

Member Function Documentation

CRect & bound ( const CRect rect)
inline
CRect & centerInside ( const CRect r)
inline

moves this rect to the center of r

CRect & extend ( CCoord  deltaX,
CCoord  deltaY 
)
inline
CRect & extend ( const CPoint p)
inline
CPoint getBottomLeft ( ) const
inline
CPoint getBottomRight ( ) const
inline
CPoint getCenter ( ) const
inline
CCoord getHeight ( ) const
inline
CPoint getSize ( ) const
inline
CPoint getTopLeft ( ) const
inline
CPoint getTopRight ( ) const
inline
CCoord getWidth ( ) const
inline
CCoord height ( ) const
inline
CRect & inset ( CCoord  deltaX,
CCoord  deltaY 
)
inline
CRect & inset ( const CPoint p)
inline
bool isEmpty ( ) const
inline
CRect & makeIntegral ( )
inline
CRect & moveTo ( CCoord  x,
CCoord  y 
)
inline
CRect & moveTo ( const CPoint p)
inline
CRect & normalize ( )
inline
CRect & offset ( CCoord  x,
CCoord  y 
)
inline
CRect & offset ( const CPoint p)
inline
CRect & offsetInverse ( const CPoint p)
inline
bool operator!= ( const CRect other) const
inline
CRect & operator() ( CCoord  left,
CCoord  top,
CCoord  right,
CCoord  bottom 
)
inline
bool operator== ( const CRect other) const
inline
CRect & originize ( )
inline
bool pointInside ( const CPoint where) const
inline

Checks if point is inside this rect.

bool rectOverlap ( const CRect rect) const
inline
CRect & setBottomLeft ( const CPoint inPoint)
inline
CRect & setBottomRight ( const CPoint inPoint)
inline
CRect & setHeight ( CCoord  height)
inline
CRect & setSize ( const CPoint size)
inline
CRect & setTopLeft ( const CPoint inPoint)
inline
CRect & setTopRight ( const CPoint inPoint)
inline
CRect & setWidth ( CCoord  width)
inline
CRect & unite ( const CRect rect)
inline
CCoord width ( ) const
inline

Member Data Documentation

CCoord bottom
CCoord left
CCoord right
CCoord top

The documentation for this struct was generated from the following file: