Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::ControllerButton Class Reference

#include <c1_control.h>

Inheritance diagram for ArdourSurface::ControllerButton:
[legend]

Public Member Functions

 ControllerButton (Console1 *console1, ControllerID id, std::function< void(uint32_t)> action, std::function< void(uint32_t)> shift_action=0, std::function< void(uint32_t)> plugin_action=0, std::function< void(uint32_t)> plugin_shift_action=0)
 
ControllerType get_type ()
 
void set_plugin_action (std::function< void(uint32_t)> action)
 
void set_plugin_shift_action (std::function< void(uint32_t)> action)
 
virtual void set_led_state (bool onoff)
 
virtual void set_led_value (uint32_t val)
 
- Public Member Functions inherited from ArdourSurface::Controller
 Controller (Console1 *console1, ControllerID id)
 
virtual ~Controller ()
 
ControllerID id () const
 

Public Attributes

std::function< void(uint32_t)> action
 
std::function< void(uint32_t)> shift_action
 
std::function< void(uint32_t)> plugin_action
 
std::function< void(uint32_t)> plugin_shift_action
 
- Public Attributes inherited from ArdourSurface::Controller
Console1console1
 

Additional Inherited Members

- Public Types inherited from ArdourSurface::Controller
enum  ControllerType {
  CONTROLLER , CONTROLLER_BUTTON , MULTISTATE_BUTTON , ENCODER ,
  METER
}
 
- Protected Attributes inherited from ArdourSurface::Controller
ControllerID _id
 

Detailed Description

Definition at line 40 of file c1_control.h.

Constructor & Destructor Documentation

◆ ControllerButton()

ArdourSurface::ControllerButton::ControllerButton ( Console1 console1,
ControllerID  id,
std::function< void(uint32_t)>  action,
std::function< void(uint32_t)>  shift_action = 0,
std::function< void(uint32_t)>  plugin_action = 0,
std::function< void(uint32_t)>  plugin_shift_action = 0 
)
inline

Definition at line 43 of file c1_control.h.

Member Function Documentation

◆ get_type()

ControllerType ArdourSurface::ControllerButton::get_type ( )
inlinevirtual

Reimplemented from ArdourSurface::Controller.

Definition at line 58 of file c1_control.h.

◆ set_led_state()

virtual void ArdourSurface::ControllerButton::set_led_state ( bool  onoff)
inlinevirtual

Definition at line 63 of file c1_control.h.

◆ set_led_value()

virtual void ArdourSurface::ControllerButton::set_led_value ( uint32_t  val)
inlinevirtual

Definition at line 74 of file c1_control.h.

◆ set_plugin_action()

void ArdourSurface::ControllerButton::set_plugin_action ( std::function< void(uint32_t)>  action)
inline

Definition at line 60 of file c1_control.h.

◆ set_plugin_shift_action()

void ArdourSurface::ControllerButton::set_plugin_shift_action ( std::function< void(uint32_t)>  action)
inline

Definition at line 61 of file c1_control.h.

Member Data Documentation

◆ action

std::function<void (uint32_t)> ArdourSurface::ControllerButton::action

Definition at line 84 of file c1_control.h.

◆ plugin_action

std::function<void (uint32_t)> ArdourSurface::ControllerButton::plugin_action

Definition at line 86 of file c1_control.h.

◆ plugin_shift_action

std::function<void (uint32_t)> ArdourSurface::ControllerButton::plugin_shift_action

Definition at line 87 of file c1_control.h.

◆ shift_action

std::function<void (uint32_t)> ArdourSurface::ControllerButton::shift_action

Definition at line 85 of file c1_control.h.


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