Krotos Modules 3
Loading...
Searching...
No Matches
krotos::XYButtonParameterAttachment Class Reference

A class that creates a custom ParameterAttachment between the x and y axis positions of the puck with the respective parameters. More...

#include <XYButton.h>

Public Member Functions

 XYButtonParameterAttachment (RangedAudioParameter &xParam, RangedAudioParameter &yParam, RangedAudioParameter &clickParam, RangedAudioParameter &toggleParam, XYButton &slider, UndoManager *undoManager=nullptr)
 
 ~XYButtonParameterAttachment ()
 
void sendInitialUpdate ()
 

Private Member Functions

void setXValue (float xValue)
 
void setYValue (float yValue)
 
void setToggleValue (float x)
 

Private Attributes

XYButtonm_xyButton
 
ParameterAttachment m_xAttachment
 
ParameterAttachment m_yAttachment
 
ParameterAttachment m_clickAttachment
 
ParameterAttachment m_toggleAttachment
 
bool m_ignoreCallbacks {false}
 

Detailed Description

A class that creates a custom ParameterAttachment between the x and y axis positions of the puck with the respective parameters.

class XYButtonParameterAttachment

Constructor & Destructor Documentation

◆ XYButtonParameterAttachment()

krotos::XYButtonParameterAttachment::XYButtonParameterAttachment ( RangedAudioParameter & xParam,
RangedAudioParameter & yParam,
RangedAudioParameter & clickParam,
RangedAudioParameter & toggleParam,
XYButton & slider,
UndoManager * undoManager = nullptr )

◆ ~XYButtonParameterAttachment()

krotos::XYButtonParameterAttachment::~XYButtonParameterAttachment ( )

Member Function Documentation

◆ sendInitialUpdate()

void krotos::XYButtonParameterAttachment::sendInitialUpdate ( )

◆ setToggleValue()

void krotos::XYButtonParameterAttachment::setToggleValue ( float x)
private

◆ setXValue()

void krotos::XYButtonParameterAttachment::setXValue ( float xValue)
private

Get's called whenever the value of the posX parameter changes. Updates the x coordinate of the puck position

Parameters
xValuevalue of parameter posX

◆ setYValue()

void krotos::XYButtonParameterAttachment::setYValue ( float yValue)
private

Get's called whenever the value of the posY parameter changes. Updates the x coordinate of the puck position

Parameters
yValuevalue of parameter posY

Member Data Documentation

◆ m_clickAttachment

ParameterAttachment krotos::XYButtonParameterAttachment::m_clickAttachment
private

◆ m_ignoreCallbacks

bool krotos::XYButtonParameterAttachment::m_ignoreCallbacks {false}
private

◆ m_toggleAttachment

ParameterAttachment krotos::XYButtonParameterAttachment::m_toggleAttachment
private

◆ m_xAttachment

ParameterAttachment krotos::XYButtonParameterAttachment::m_xAttachment
private

◆ m_xyButton

XYButton& krotos::XYButtonParameterAttachment::m_xyButton
private

◆ m_yAttachment

ParameterAttachment krotos::XYButtonParameterAttachment::m_yAttachment
private

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