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

Point structure. More...

Public Member Functions

constexpr CPoint ()=default
 
constexpr CPoint (CCoord x, CCoord y)
 
CPointoperator() (CCoord _x, CCoord _y)
 
constexpr bool operator!= (const CPoint &other) const
 
constexpr bool operator== (const CPoint &other) const
 
CPointoperator+= (const CPoint &other)
 
CPointoperator-= (const CPoint &other)
 
CPointoperator*= (double factor)
 
CPointoperator/= (double factor)
 
constexpr CPoint operator+ (const CPoint &other) const
 
constexpr CPoint operator- (const CPoint &other) const
 
constexpr CPoint operator* (double factor) const
 
constexpr CPoint operator/ (double factor) const
 
constexpr CPoint operator- () const
 
CPointoffset (const CCoord c)
 
CPointoffset (const CCoord _x, const CCoord _y)
 
CPointoffset (const CPoint &other)
 
CPointoffsetInverse (const CPoint &other)
 
CPointmakeIntegral ()
 

Public Attributes

CCoord x {0.}
 
CCoord y {0.}
 

Detailed Description

Point structure.

Constructor & Destructor Documentation

constexpr CPoint ( )
default
constexpr CPoint ( CCoord  x,
CCoord  y 
)
inline

Member Function Documentation

CPoint & makeIntegral ( )
inline
CPoint& offset ( const CCoord  c)
inline
CPoint& offset ( const CCoord  _x,
const CCoord  _y 
)
inline
CPoint& offset ( const CPoint other)
inline
CPoint& offsetInverse ( const CPoint other)
inline
constexpr bool operator!= ( const CPoint other) const
inline
CPoint& operator() ( CCoord  _x,
CCoord  _y 
)
inline
constexpr CPoint operator* ( double  factor) const
inline
CPoint& operator*= ( double  factor)
inline
constexpr CPoint operator+ ( const CPoint other) const
inline
CPoint& operator+= ( const CPoint other)
inline
constexpr CPoint operator- ( const CPoint other) const
inline
constexpr CPoint operator- ( ) const
inline
CPoint& operator-= ( const CPoint other)
inline
constexpr CPoint operator/ ( double  factor) const
inline
CPoint& operator/= ( double  factor)
inline
constexpr bool operator== ( const CPoint other) const
inline

Member Data Documentation

CCoord x {0.}
CCoord y {0.}

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