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

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

#include <customcontrols.h>

Inheritance diagram for VSTGUI::CHorizontalSliderEx:

Public Member Functions

 CHorizontalSliderEx (const CRect &size, IControlListener *listener, int32_t tag, int32_t iMinPos, int32_t iMaxPos, CBitmap *handle, CBitmap *background, const CPoint &offset=CPoint(0, 0), const int32_t style=kLeft)
 
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)
 
void setSwitchMax (float f)
 set max discrete switching value
 
void setSwitchSlider (bool b)
 sets the control into "switch" mode
 
bool isSwitchSlider ()
 query if control is in "switch" mode
 
void setAAXSlider (bool b)
 sets the AAX flag for this control
 
bool isAAXSlider ()
 query if control wants Pro Tools keyboard modifiers
 

Protected Attributes

bool switchSlider
 
float maxControlValue
 
bool aaxSlider
 

Detailed Description

The CHorizontalSliderEx object extends the VSTGUI CHorizontalSlider 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

◆ isAAXSlider()

bool VSTGUI::CHorizontalSliderEx::isAAXSlider ( )
inline

query if control wants Pro Tools keyboard modifiers

Returns
true if in "switch" mode

◆ isSwitchSlider()

bool VSTGUI::CHorizontalSliderEx::isSwitchSlider ( )
inline

query if control is in "switch" mode

Returns
true if in "switch" mode

◆ onMouseDown()

CMouseEventResult VSTGUI::CHorizontalSliderEx::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::CHorizontalSliderEx::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::CHorizontalSliderEx::onMouseUp ( CPoint &  where,
const CButtonState &  buttons 
)
override

handle mouse up event

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

◆ setAAXSlider()

void VSTGUI::CHorizontalSliderEx::setAAXSlider ( bool  b)
inline

sets the AAX flag for this control

Parameters
bflag to enable AAX mode

◆ setSwitchMax()

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

set max discrete switching value

Parameters
f- the max value as a float

◆ setSwitchSlider()

void VSTGUI::CHorizontalSliderEx::setSwitchSlider ( bool  b)
inline

sets the control into "switch" mode

Parameters
bflag to enable switch mode

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