VSTGUI  4.10
Graphical User Interface Framework not only for VST plugins
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

◆ CPoint() [1/2]

constexpr CPoint ( )
default

◆ CPoint() [2/2]

constexpr CPoint ( CCoord  x,
CCoord  y 
)
inline

Member Function Documentation

◆ makeIntegral()

CPoint & makeIntegral ( )
inline

◆ offset() [1/3]

CPoint& offset ( const CCoord  c)
inline

◆ offset() [2/3]

CPoint& offset ( const CCoord  _x,
const CCoord  _y 
)
inline

◆ offset() [3/3]

CPoint& offset ( const CPoint other)
inline

◆ offsetInverse()

CPoint& offsetInverse ( const CPoint other)
inline

◆ operator *()

constexpr CPoint operator * ( double  factor) const
inline

◆ operator *=()

CPoint& operator *= ( double  factor)
inline

◆ operator!=()

constexpr bool operator!= ( const CPoint other) const
inline

◆ operator()()

CPoint& operator() ( CCoord  _x,
CCoord  _y 
)
inline

◆ operator+()

constexpr CPoint operator+ ( const CPoint other) const
inline

◆ operator+=()

CPoint& operator+= ( const CPoint other)
inline

◆ operator-() [1/2]

constexpr CPoint operator- ( const CPoint other) const
inline

◆ operator-() [2/2]

constexpr CPoint operator- ( ) const
inline

◆ operator-=()

CPoint& operator-= ( const CPoint other)
inline

◆ operator/()

constexpr CPoint operator/ ( double  factor) const
inline

◆ operator/=()

CPoint& operator/= ( double  factor)
inline

◆ operator==()

constexpr bool operator== ( const CPoint other) const
inline

Member Data Documentation

◆ x

CCoord x {0.}

◆ y

CCoord y {0.}

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