VSTGUI  4.2
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
 
void setWidth (CCoord width)
 
void setHeight (CCoord height)
 
CPoint getTopLeft () const
 
CPoint getTopRight () const
 
CPoint getBottomLeft () const
 
CPoint getBottomRight () const
 
void setTopLeft (const CPoint &inPoint)
 
void setTopRight (const CPoint &inPoint)
 
void setBottomLeft (const CPoint &inPoint)
 
void setBottomRight (const CPoint &inPoint)
 
CPoint getCenter () const
 
CPoint getSize () const
 
void setSize (const CPoint &size)
 
CRectoffset (CCoord x, CCoord y)
 
CRectinset (CCoord deltaX, CCoord deltaY)
 
CRectmoveTo (CCoord x, CCoord y)
 
bool pointInside (const CPoint &where) const
 Checks if point is inside this rect. More...
 
bool isEmpty () const
 
bool rectOverlap (const CRect &rect) const
 
void bound (const CRect &rect)
 
void unite (const CRect &rect)
 
void normalize ()
 
void originize ()
 
void centerInside (const CRect &r)
 moves this rect to the center of r More...
 
void makeIntegral ()
 

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

void bound ( const CRect rect)

+ Here is the caller graph for this function:

void centerInside ( const CRect r)

moves this rect to the center of r

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CPoint getBottomLeft ( ) const

+ Here is the caller graph for this function:

CPoint getBottomRight ( ) const

+ Here is the caller graph for this function:

CPoint getCenter ( ) const

+ 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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CPoint getTopLeft ( ) const

+ Here is the caller graph for this function:

CPoint getTopRight ( ) const
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:

bool isEmpty ( ) const

+ Here is the caller graph for this function:

void makeIntegral ( )

+ Here is the caller graph for this function:

CRect& moveTo ( CCoord  x,
CCoord  y 
)
inline
void 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:

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
void originize ( )
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool pointInside ( const CPoint where) const

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:

void setBottomLeft ( const CPoint inPoint)
void setBottomRight ( const CPoint inPoint)
void setHeight ( CCoord  height)
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setSize ( const CPoint size)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setTopLeft ( const CPoint inPoint)

+ Here is the caller graph for this function:

void setTopRight ( const CPoint inPoint)
void setWidth ( CCoord  width)
inline

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void unite ( const CRect rect)
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 files: