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

This object demonstrates how to subclass an existing VSTGUI4 control to setup a communcation channel with it using the ICustomView interface.
. More...

#include <customviews.h>

Inheritance diagram for VSTGUI::CustomKnobView:
ICustomView

Public Member Functions

 CustomKnobView (const CRect &size, IControlListener *listener, int32_t tag, int32_t subPixmaps, CCoord heightOfOneImage, CBitmap *background, const CPoint &offset, bool bSwitchKnob=false)
 CustomKnobView constructor.
 
virtual void updateView () override
 
virtual void sendMessage (void *data) override
 
- Public Member Functions inherited from ICustomView
virtual void updateView ()=0
 
virtual void pushDataValue (double data)
 
virtual void sendMessage (void *data)
 

Detailed Description

This object demonstrates how to subclass an existing VSTGUI4 control to setup a communcation channel with it using the ICustomView interface.
.

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

Constructor & Destructor Documentation

◆ CustomKnobView()

VSTGUI::CustomKnobView::CustomKnobView ( const CRect &  size,
IControlListener *  listener,
int32_t  tag,
int32_t  subPixmaps,
CCoord  heightOfOneImage,
CBitmap *  background,
const CPoint &  offset,
bool  bSwitchKnob = false 
)

CustomKnobView constructor.

Parameters
size- the control rectangle
listener- the control's listener (usuall PluginGUI object)
tag- the control ID value
subPixmaps- the number of frames in the strip animation
heightOfOneImage-the number of frames in the strip animation
background-the graphics file for the control
offset-positional offset value
bSwitchKnob- flag to enable switch knob

Member Function Documentation

◆ sendMessage()

void VSTGUI::CustomKnobView::sendMessage ( void *  data)
overridevirtual

ICustomView method: send a message to the object (!)

Reimplemented from ICustomView.

◆ updateView()

void VSTGUI::CustomKnobView::updateView ( )
overridevirtual

ICustomView method: this repaints the control

Implements ICustomView.


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