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

Public Types

enum  LineCap { kLineCapButt = 0, kLineCapRound, kLineCapSquare }
 
enum  LineJoin { kLineJoinMiter = 0, kLineJoinRound, kLineJoinBevel }
 
using CoordVector = std::vector< CCoord >
 

Public Member Functions

 CLineStyle ()=default
 
 CLineStyle (LineCap cap, LineJoin join=kLineJoinMiter, CCoord dashPhase=0., uint32_t dashCount=0, const CCoord *dashLengths=nullptr)
 
 CLineStyle (LineCap cap, LineJoin join, CCoord dashPhase, const CoordVector &dashLengths)
 
 CLineStyle (const CLineStyle &lineStyle)
 
 ~CLineStyle () noexcept=default
 
 CLineStyle (LineCap cap, LineJoin join, CCoord dashPhase, CoordVector &&dashLengths) noexcept
 
 CLineStyle (CLineStyle &&cls) noexcept
 
CLineStyleoperator= (CLineStyle &&cls) noexcept
 
LineCap getLineCap () const
 
LineJoin getLineJoin () const
 
CCoord getDashPhase () const
 
uint32_t getDashCount () const
 
CoordVectorgetDashLengths ()
 
const CoordVectorgetDashLengths () const
 
void setLineCap (LineCap newCap)
 
void setLineJoin (LineJoin newJoin)
 
void setDashPhase (CCoord phase)
 
bool operator== (const CLineStyle &cls) const
 
bool operator!= (const CLineStyle &cls) const
 
CLineStyleoperator= (const CLineStyle &cls)
 

Protected Attributes

LineCap cap {kLineCapButt}
 
LineJoin join {kLineJoinMiter}
 
CCoord dashPhase {0.}
 
CoordVector dashLengths
 

Member Typedef Documentation

using CoordVector = std::vector<CCoord>

Member Enumeration Documentation

enum LineCap
Enumerator
kLineCapButt 
kLineCapRound 
kLineCapSquare 
enum LineJoin
Enumerator
kLineJoinMiter 
kLineJoinRound 
kLineJoinBevel 

Constructor & Destructor Documentation

CLineStyle ( )
default
CLineStyle ( LineCap  cap,
LineJoin  join = kLineJoinMiter,
CCoord  dashPhase = 0.,
uint32_t  dashCount = 0,
const CCoord dashLengths = nullptr 
)
explicit
CLineStyle ( LineCap  cap,
LineJoin  join,
CCoord  dashPhase,
const CoordVector dashLengths 
)
CLineStyle ( const CLineStyle lineStyle)
~CLineStyle ( )
defaultnoexcept
CLineStyle ( LineCap  cap,
LineJoin  join,
CCoord  dashPhase,
CoordVector &&  dashLengths 
)
noexcept
CLineStyle ( CLineStyle &&  cls)
noexcept

Member Function Documentation

uint32_t getDashCount ( ) const
inline
CoordVector& getDashLengths ( )
inline
const CoordVector& getDashLengths ( ) const
inline
CCoord getDashPhase ( ) const
inline
LineCap getLineCap ( ) const
inline
LineJoin getLineJoin ( ) const
inline
bool operator!= ( const CLineStyle cls) const
inline
CLineStyle & operator= ( CLineStyle &&  cls)
noexcept
CLineStyle & operator= ( const CLineStyle cls)
bool operator== ( const CLineStyle cls) const
void setDashPhase ( CCoord  phase)
inline
void setLineCap ( LineCap  newCap)
inline
void setLineJoin ( LineJoin  newJoin)
inline

Member Data Documentation

LineCap cap {kLineCapButt}
protected
CoordVector dashLengths
protected
CCoord dashPhase {0.}
protected
LineJoin join {kLineJoinMiter}
protected

The documentation for this class was generated from the following files: