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

#include <c1_control.h>

Inheritance diagram for ArdourSurface::Encoder:
[legend]

Public Member Functions

 Encoder (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_value (uint32_t value)
 
- 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 val)> shift_action
 
std::function< void(uint32_t val)> plugin_action
 
std::function< void(uint32_t val)> plugin_shift_action
 
PBD::Signal< void(uint32_t)> * plugin_signal
 
- 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 168 of file c1_control.h.

Constructor & Destructor Documentation

◆ Encoder()

ArdourSurface::Encoder::Encoder ( 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 171 of file c1_control.h.

Member Function Documentation

◆ get_type()

ControllerType ArdourSurface::Encoder::get_type ( )
inlinevirtual

Reimplemented from ArdourSurface::Controller.

Definition at line 186 of file c1_control.h.

◆ set_plugin_action()

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

Definition at line 188 of file c1_control.h.

◆ set_plugin_shift_action()

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

Definition at line 189 of file c1_control.h.

◆ set_value()

virtual void ArdourSurface::Encoder::set_value ( uint32_t  value)
inlinevirtual

Definition at line 191 of file c1_control.h.

Member Data Documentation

◆ action

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

Definition at line 200 of file c1_control.h.

◆ plugin_action

std::function<void (uint32_t val)> ArdourSurface::Encoder::plugin_action

Definition at line 202 of file c1_control.h.

◆ plugin_shift_action

std::function<void (uint32_t val)> ArdourSurface::Encoder::plugin_shift_action

Definition at line 203 of file c1_control.h.

◆ plugin_signal

PBD::Signal<void(uint32_t)>* ArdourSurface::Encoder::plugin_signal

Definition at line 205 of file c1_control.h.

◆ shift_action

std::function<void (uint32_t val)> ArdourSurface::Encoder::shift_action

Definition at line 201 of file c1_control.h.


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