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

The CXYPadEx object extends the CXYPad CVuMeter object with extra functionality.
It is used in the PluginGUI object for creating custom views. More...

#include <customcontrols.h>

Inheritance diagram for VSTGUI::CXYPadEx:

Public Member Functions

 CXYPadEx (const CRect &size=CRect(0, 0, 0, 0))
 
void setTagX (int32_t tag)
 
int32_t getTagX ()
 
void setTagY (int32_t tag)
 
int32_t getTagY ()
 
void draw (CDrawContext *context) override
 
CMouseEventResult onMouseMoved (CPoint &where, const CButtonState &buttons) override
 handle mouse moved event
 
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 void setValue (float val) override
 
int pointInPolygon (int nvert, float *vertx, float *verty, float testx, float testy)
 

Static Public Member Functions

static void calculateXY (float value, float &x, float &y)
 
static float calculateValue (float x, float y)
 

Protected Attributes

int32_t tagX
 
int32_t tagY
 
bool isJoystickPad
 
float vertX [4]
 
float vertY [4]
 
float lastX
 
float lastY
 

Detailed Description

The CXYPadEx object extends the CXYPad CVuMeter 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

◆ onMouseDown()

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

handle mouse moved event

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

◆ onMouseUp()

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

handle mouse up event

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

◆ setValue()

void VSTGUI::CXYPadEx::setValue ( float  val)
overridevirtual

else ignore


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