ASPiK SDK
Loading...
Searching...
No Matches
VSTGUI::CAnimKnobEx Class Reference

The CAnimKnobEx object extends the VSTGUI CAnimKnob object with extra functionality.
It is used in the PluginGUI object for creating custom views. More...

#include <customcontrols.h>

Inheritance diagram for VSTGUI::CAnimKnobEx:

Public Member Functions

 CAnimKnobEx (const CRect &size, IControlListener *listener, int32_t tag, int32_t subPixmaps, CCoord heightOfOneImage, CBitmap *background, const CPoint &offset, bool bSwitchKnob=false)
 
virtual void draw (CDrawContext *pContext) override
 
CMouseEventResult onMouseUp (CPoint &where, const CButtonState &buttons) override
 handle mouse up event
 
CMouseEventResult onMouseDown (CPoint &where, const CButtonState &buttons) override
 handle mouse down event
 
virtual CMouseEventResult onMouseMoved (CPoint &where, const CButtonState &buttons) override
 handle mouse moved event
 
bool checkDefaultValue (CButtonState button)
 
virtual void valueChanged () override
 
void setSwitchMax (float f)
 set max discrete switching value
 
bool isSwitchKnob ()
 query if control is in "switch" mode
 
void setAAXKnob (bool b)
 sets the AAX flag for this control
 
bool isAAXKnob ()
 query if control wants Pro Tools keyboard modifiers
 

Protected Attributes

bool switchKnob = false
 
bool aaxKnob = false
 
float maxControlValue = 1.0
 

Detailed Description

The CAnimKnobEx object extends the VSTGUI CAnimKnob object with extra functionality.
It is used in the PluginGUI object for creating custom views.

Author
Will Pirkle http://www.willpirkle.com
Remarks
This object is included in Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle
Version
Revision : 1.0
Date
Date : 2018 / 09 / 7

Member Function Documentation

◆ isAAXKnob()

bool VSTGUI::CAnimKnobEx::isAAXKnob ( )
inline

query if control wants Pro Tools keyboard modifiers

Returns
true if in "switch" mode

◆ isSwitchKnob()

bool VSTGUI::CAnimKnobEx::isSwitchKnob ( )
inline

query if control is in "switch" mode

Returns
true if in "switch" mode

◆ onMouseDown()

CMouseEventResult VSTGUI::CAnimKnobEx::onMouseDown ( CPoint &  where,
const CButtonState &  buttons 
)
override

handle mouse down event

Parameters
where- coordinates of mouse event
buttons- button state during mouse event

◆ onMouseMoved()

CMouseEventResult VSTGUI::CAnimKnobEx::onMouseMoved ( CPoint &  where,
const CButtonState &  buttons 
)
overridevirtual

handle mouse moved event

Parameters
where- coordinates of mouse event
buttons- button state during mouse event

◆ onMouseUp()

CMouseEventResult VSTGUI::CAnimKnobEx::onMouseUp ( CPoint &  where,
const CButtonState &  buttons 
)
override

handle mouse up event

Parameters
where- coordinates of mouse event
buttons- button state during mouse event

◆ setAAXKnob()

void VSTGUI::CAnimKnobEx::setAAXKnob ( bool  b)
inline

sets the AAX flag for this control

Parameters
bflag to enable AAX mode

◆ setSwitchMax()

void VSTGUI::CAnimKnobEx::setSwitchMax ( float  f)
inline

set max discrete switching value

Parameters
f- the max value as a float

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