Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::LaunchPadPro::Pad Struct Reference

Public Types

enum  ColorMode { Static = 0x0 , Flashing = 0x1 , Pulsing = 0x2 }
 
typedef void(LaunchPadPro::* ButtonMethod) (Pad &)
 
typedef void(LaunchPadPro::* PadMethod) (Pad &, int velocity)
 

Public Member Functions

 Pad (PadID pid, ButtonMethod press_method, ButtonMethod long_press_method=&LaunchPadPro::relax, ButtonMethod release_method=&LaunchPadPro::relax)
 
 Pad (int pid, int xx, int yy, PadMethod press_method, ButtonMethod long_press_method=&LaunchPadPro::relax, ButtonMethod release_method=&LaunchPadPro::relax)
 
MIDI::byte status_byte () const
 
bool is_pad () const
 
bool is_button () const
 

Public Attributes

int id
 
int x
 
int y
 
union {
   ButtonMethod   on_press
 
   PadMethod   on_pad_press
 
}; 
 
ButtonMethod on_release
 
ButtonMethod on_long_press
 
sigc::connection timeout_connection
 

Detailed Description

Definition at line 182 of file lppro.h.

Member Typedef Documentation

◆ ButtonMethod

typedef void(LaunchPadPro::* ArdourSurface::LaunchPadPro::Pad::ButtonMethod) (Pad &)

Definition at line 190 of file lppro.h.

◆ PadMethod

typedef void(LaunchPadPro::* ArdourSurface::LaunchPadPro::Pad::PadMethod) (Pad &, int velocity)

Definition at line 191 of file lppro.h.

Member Enumeration Documentation

◆ ColorMode

Enumerator
Static 
Flashing 
Pulsing 

Definition at line 184 of file lppro.h.

Constructor & Destructor Documentation

◆ Pad() [1/2]

ArdourSurface::LaunchPadPro::Pad::Pad ( PadID  pid,
ButtonMethod  press_method,
ButtonMethod  long_press_method = &LaunchPadPro::relax,
ButtonMethod  release_method = &LaunchPadPro::relax 
)
inline

Definition at line 193 of file lppro.h.

◆ Pad() [2/2]

ArdourSurface::LaunchPadPro::Pad::Pad ( int  pid,
int  xx,
int  yy,
PadMethod  press_method,
ButtonMethod  long_press_method = &LaunchPadPro::relax,
ButtonMethod  release_method = &LaunchPadPro::relax 
)
inline

Definition at line 203 of file lppro.h.

Member Function Documentation

◆ is_button()

bool ArdourSurface::LaunchPadPro::Pad::is_button ( ) const
inline

Definition at line 215 of file lppro.h.

◆ is_pad()

bool ArdourSurface::LaunchPadPro::Pad::is_pad ( ) const
inline

Definition at line 214 of file lppro.h.

◆ status_byte()

MIDI::byte ArdourSurface::LaunchPadPro::Pad::status_byte ( ) const
inline

Definition at line 213 of file lppro.h.

Member Data Documentation

◆ 

union { ... }

◆ id

int ArdourSurface::LaunchPadPro::Pad::id

Definition at line 217 of file lppro.h.

◆ on_long_press

ButtonMethod ArdourSurface::LaunchPadPro::Pad::on_long_press

Definition at line 230 of file lppro.h.

◆ on_pad_press

PadMethod ArdourSurface::LaunchPadPro::Pad::on_pad_press

Definition at line 226 of file lppro.h.

◆ on_press

ButtonMethod ArdourSurface::LaunchPadPro::Pad::on_press

Definition at line 225 of file lppro.h.

◆ on_release

ButtonMethod ArdourSurface::LaunchPadPro::Pad::on_release

Definition at line 229 of file lppro.h.

◆ timeout_connection

sigc::connection ArdourSurface::LaunchPadPro::Pad::timeout_connection

Definition at line 232 of file lppro.h.

◆ x

int ArdourSurface::LaunchPadPro::Pad::x

Definition at line 218 of file lppro.h.

◆ y

int ArdourSurface::LaunchPadPro::Pad::y

Definition at line 219 of file lppro.h.


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