Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::LaunchControlXL::Knob Struct Reference

#include <launch_control_xl.h>

Inheritance diagram for ArdourSurface::LaunchControlXL::Knob:
[legend]

Public Member Functions

 Knob (KnobID id, uint8_t cn, uint8_t index, LEDColor c_on, LEDColor c_off, std::function< void()> action, LaunchControlXL &l)
 
 Knob (KnobID id, uint8_t cn, uint8_t index, LEDColor c_on, LEDColor c_off, std::function< void()> action, std::function< uint8_t()> check, LaunchControlXL &l)
 
KnobID id () const
 
LEDColor color_enabled () const
 
LEDColor color_disabled () const
 
MidiByteArray state_msg (bool light=true) const
 
- Public Member Functions inherited from ArdourSurface::LaunchControlXL::Controller
 Controller (uint8_t cn, uint8_t val, std::function< void()> action)
 
uint8_t controller_number () const
 
uint8_t value () const
 
void set_value (uint8_t val)
 
- Public Member Functions inherited from ArdourSurface::LaunchControlXL::MultiColorLED
 MultiColorLED (uint8_t i, LEDColor c, LaunchControlXL &l)
 
 MultiColorLED (uint8_t i, LEDColor c, LEDFlag f, LaunchControlXL &l)
 
void set_color (LEDColor c)
 
- Public Member Functions inherited from ArdourSurface::LaunchControlXL::LED
 LED (uint8_t i, LEDColor c, LaunchControlXL &l)
 
 LED (uint8_t i, LEDColor c, LEDFlag f, LaunchControlXL &lcxl)
 
virtual ~LED ()
 
LEDColor color () const
 
LEDFlag flag () const
 
uint8_t index () const
 
void set_flag (LEDFlag f)
 

Public Attributes

std::function< uint8_t()> check_method
 
- Public Attributes inherited from ArdourSurface::LaunchControlXL::Controller
std::function< void()> action_method
 

Private Attributes

KnobID _id
 
LEDColor _color_enabled
 
LEDColor _color_disabled
 

Additional Inherited Members

- Protected Attributes inherited from ArdourSurface::LaunchControlXL::Controller
uint8_t _controller_number
 
uint8_t _value
 
- Protected Attributes inherited from ArdourSurface::LaunchControlXL::LED
uint8_t _index
 
LEDColor _color
 
LEDFlag _flag
 
MidiByteArray _state_msg
 
LaunchControlXLlcxl
 

Detailed Description

Definition at line 321 of file launch_control_xl.h.

Constructor & Destructor Documentation

◆ Knob() [1/2]

ArdourSurface::LaunchControlXL::Knob::Knob ( KnobID  id,
uint8_t  cn,
uint8_t  index,
LEDColor  c_on,
LEDColor  c_off,
std::function< void()>  action,
LaunchControlXL l 
)
inline

Definition at line 322 of file launch_control_xl.h.

◆ Knob() [2/2]

ArdourSurface::LaunchControlXL::Knob::Knob ( KnobID  id,
uint8_t  cn,
uint8_t  index,
LEDColor  c_on,
LEDColor  c_off,
std::function< void()>  action,
std::function< uint8_t()>  check,
LaunchControlXL l 
)
inline

Definition at line 330 of file launch_control_xl.h.

Member Function Documentation

◆ color_disabled()

LEDColor ArdourSurface::LaunchControlXL::Knob::color_disabled ( ) const
inline

Definition at line 343 of file launch_control_xl.h.

◆ color_enabled()

LEDColor ArdourSurface::LaunchControlXL::Knob::color_enabled ( ) const
inline

Definition at line 342 of file launch_control_xl.h.

◆ id()

KnobID ArdourSurface::LaunchControlXL::Knob::id ( ) const
inline

Definition at line 341 of file launch_control_xl.h.

◆ state_msg()

MidiByteArray ArdourSurface::LaunchControlXL::Knob::state_msg ( bool  light = true) const
virtual

Member Data Documentation

◆ _color_disabled

LEDColor ArdourSurface::LaunchControlXL::Knob::_color_disabled
private

Definition at line 351 of file launch_control_xl.h.

◆ _color_enabled

LEDColor ArdourSurface::LaunchControlXL::Knob::_color_enabled
private

Definition at line 350 of file launch_control_xl.h.

◆ _id

KnobID ArdourSurface::LaunchControlXL::Knob::_id
private

Definition at line 349 of file launch_control_xl.h.

◆ check_method

std::function<uint8_t ()> ArdourSurface::LaunchControlXL::Knob::check_method

Definition at line 344 of file launch_control_xl.h.


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