ASPiK SDK
VSTGUI::CRect Struct Reference

Rect structure. More...

#include <crect.h>

Public Member Functions

 CRect (CCoord left, CCoord top, CCoord right, CCoord bottom)
 
 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 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 c)
 
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.
 
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
 
CRectmakeIntegral ()
 

Public Attributes

CCoord left {0.}
 
CCoord top {0.}
 
CCoord right {0.}
 
CCoord bottom {0.}
 

Detailed Description

Rect structure.


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