VSTGUI 4.10
Graphical User Interface Framework not only for VST plugins
Loading...
Searching...
No Matches
CPoint Struct Reference

Point structure. More...

#include <cpoint.h>

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]

CPoint ( )
constexprdefault

◆ CPoint() [2/2]

CPoint ( CCoord x,
CCoord y )
inlineconstexpr

Member Function Documentation

◆ makeIntegral()

CPoint & makeIntegral ( )
inline

◆ offset() [1/3]

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

◆ offset() [2/3]

CPoint & offset ( const CCoord c)
inline

◆ offset() [3/3]

CPoint & offset ( const CPoint & other)
inline

◆ offsetInverse()

CPoint & offsetInverse ( const CPoint & other)
inline

◆ operator!=()

bool operator!= ( const CPoint & other) const
inlineconstexpr

◆ operator()()

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

◆ operator*()

CPoint operator* ( double factor) const
inlineconstexpr

◆ operator*=()

CPoint & operator*= ( double factor)
inline

◆ operator+()

CPoint operator+ ( const CPoint & other) const
inlineconstexpr

◆ operator+=()

CPoint & operator+= ( const CPoint & other)
inline

◆ operator-() [1/2]

CPoint operator- ( ) const
inlineconstexpr

◆ operator-() [2/2]

CPoint operator- ( const CPoint & other) const
inlineconstexpr

◆ operator-=()

CPoint & operator-= ( const CPoint & other)
inline

◆ operator/()

CPoint operator/ ( double factor) const
inlineconstexpr

◆ operator/=()

CPoint & operator/= ( double factor)
inline

◆ operator==()

bool operator== ( const CPoint & other) const
inlineconstexpr

Member Data Documentation

◆ x

CCoord x {0.}

◆ y

CCoord y {0.}

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