VSTGUI  4.3
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

+ Here is the call graph for this function:

Member Function Documentation

CRect & bound ( const CRect rect)
inline

+ Here is the caller graph for this function:

CRect & centerInside ( const CRect r)
inline

moves this rect to the center of r

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CRect & extend ( CCoord  deltaX,
CCoord  deltaY 
)
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CRect & extend ( const CPoint p)
inline

+ Here is the call graph for this function:

CPoint getBottomLeft ( ) const
inline

+ Here is the caller graph for this function:

CPoint getBottomRight ( ) const
inline

+ Here is the caller graph for this function:

CPoint getCenter ( ) const
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CCoord getHeight ( ) const
inline

+ Here is the caller graph for this function:

CPoint getSize ( ) const
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CPoint getTopLeft ( ) const
inline

+ Here is the caller graph for this function:

CPoint getTopRight ( ) const
inline

+ Here is the caller graph for this function:

CCoord getWidth ( ) const
inline

+ Here is the caller graph for this function:

CCoord height ( ) const
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CRect & inset ( CCoord  deltaX,
CCoord  deltaY 
)
inline

+ Here is the caller graph for this function:

CRect & inset ( const CPoint p)
inline

+ Here is the call graph for this function:

bool isEmpty ( ) const
inline

+ Here is the caller graph for this function:

CRect & makeIntegral ( )
inline

+ Here is the caller graph for this function:

CRect & moveTo ( CCoord  x,
CCoord  y 
)
inline

+ Here is the caller graph for this function:

CRect & moveTo ( const CPoint p)
inline

+ Here is the call graph for this function:

CRect & normalize ( )
inline

+ Here is the caller graph for this function:

CRect & offset ( CCoord  x,
CCoord  y 
)
inline

+ Here is the caller graph for this function:

CRect & offset ( const CPoint p)
inline

+ Here is the call graph for this function:

CRect & offsetInverse ( const CPoint p)
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool pointInside ( const CPoint where) const
inline

Checks if point is inside this rect.

+ Here is the caller graph for this function:

bool rectOverlap ( const CRect rect) const
inline

+ Here is the caller graph for this function:

CRect & setBottomLeft ( const CPoint inPoint)
inline
CRect & setBottomRight ( const CPoint inPoint)
inline
CRect & setHeight ( CCoord  height)
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CRect & setSize ( const CPoint size)
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CRect & setTopLeft ( const CPoint inPoint)
inline

+ Here is the caller graph for this function:

CRect & setTopRight ( const CPoint inPoint)
inline
CRect & setWidth ( CCoord  width)
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CRect & unite ( const CRect rect)
inline
CCoord width ( ) const
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

CCoord bottom
CCoord left
CCoord right
CCoord top

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