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

#include <launch_control_xl.h>

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

Public Member Functions

 TrackButton (ButtonID id, uint8_t nn, uint8_t index, LEDColor c_on, LEDColor c_off, std::function< void()> press, std::function< void()> release, std::function< void()> release_long, std::function< uint8_t()> check, LaunchControlXL &l)
 
LEDColor color_enabled () const
 
LEDColor color_disabled () const
 
void set_color_enabled (LEDColor c_on)
 
void set_color_disabled (LEDColor c_off)
 
MidiByteArray state_msg (bool light=true) const
 
- Public Member Functions inherited from ArdourSurface::LaunchControlXL::NoteButton
 NoteButton (ButtonID id, uint8_t cn, std::function< void()> press, std::function< void()> release, std::function< void()> release_long)
 
uint8_t note_number () const
 
- Public Member Functions inherited from ArdourSurface::LaunchControlXL::Button
 Button (ButtonID id, std::function< void()> press, std::function< void()> release, std::function< void()> long_press)
 
virtual ~Button ()
 
ButtonID id () const
 
- 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::Button
std::function< void()> press_method
 
std::function< void()> release_method
 
std::function< void()> long_press_method
 
sigc::connection timeout_connection
 

Private Attributes

LEDColor _color_enabled
 
LEDColor _color_disabled
 

Additional Inherited Members

- Protected Attributes inherited from ArdourSurface::LaunchControlXL::Button
ButtonID _id
 
- Protected Attributes inherited from ArdourSurface::LaunchControlXL::LED
uint8_t _index
 
LEDColor _color
 
LEDFlag _flag
 
MidiByteArray _state_msg
 
LaunchControlXLlcxl
 

Detailed Description

Definition at line 255 of file launch_control_xl.h.

Constructor & Destructor Documentation

◆ TrackButton()

ArdourSurface::LaunchControlXL::TrackButton::TrackButton ( ButtonID  id,
uint8_t  nn,
uint8_t  index,
LEDColor  c_on,
LEDColor  c_off,
std::function< void()>  press,
std::function< void()>  release,
std::function< void()>  release_long,
std::function< uint8_t()>  check,
LaunchControlXL l 
)
inline

Definition at line 256 of file launch_control_xl.h.

Member Function Documentation

◆ color_disabled()

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

Definition at line 272 of file launch_control_xl.h.

◆ color_enabled()

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

Definition at line 271 of file launch_control_xl.h.

◆ set_color_disabled()

void ArdourSurface::LaunchControlXL::TrackButton::set_color_disabled ( LEDColor  c_off)
inline

Definition at line 274 of file launch_control_xl.h.

◆ set_color_enabled()

void ArdourSurface::LaunchControlXL::TrackButton::set_color_enabled ( LEDColor  c_on)
inline

Definition at line 273 of file launch_control_xl.h.

◆ state_msg()

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

Member Data Documentation

◆ _color_disabled

LEDColor ArdourSurface::LaunchControlXL::TrackButton::_color_disabled
private

Definition at line 282 of file launch_control_xl.h.

◆ _color_enabled

LEDColor ArdourSurface::LaunchControlXL::TrackButton::_color_enabled
private

Definition at line 281 of file launch_control_xl.h.

◆ check_method

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

Definition at line 275 of file launch_control_xl.h.


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