Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::LP_X::LaunchPadX::Pad Struct Reference

Public Types

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

Public Member Functions

 Pad (PadID pid, ButtonMethod press_method, ButtonMethod long_press_method=&LaunchPadX::relax, ButtonMethod release_method=&LaunchPadX::relax)
 
 Pad (int pid, int xx, int yy, PadMethod press_method, ButtonMethod long_press_method=&LaunchPadX::relax, ButtonMethod release_method=&LaunchPadX::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 138 of file lpx.h.

Member Typedef Documentation

◆ ButtonMethod

typedef void(LaunchPadX::* ArdourSurface::LP_X::LaunchPadX::Pad::ButtonMethod) (Pad &)

Definition at line 146 of file lpx.h.

◆ PadMethod

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

Definition at line 147 of file lpx.h.

Member Enumeration Documentation

◆ ColorMode

Enumerator
Static 
Flashing 
Pulsing 

Definition at line 140 of file lpx.h.

Constructor & Destructor Documentation

◆ Pad() [1/2]

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

Definition at line 149 of file lpx.h.

◆ Pad() [2/2]

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

Definition at line 159 of file lpx.h.

Member Function Documentation

◆ is_button()

bool ArdourSurface::LP_X::LaunchPadX::Pad::is_button ( ) const
inline

Definition at line 171 of file lpx.h.

◆ is_pad()

bool ArdourSurface::LP_X::LaunchPadX::Pad::is_pad ( ) const
inline

Definition at line 170 of file lpx.h.

◆ status_byte()

MIDI::byte ArdourSurface::LP_X::LaunchPadX::Pad::status_byte ( ) const
inline

Definition at line 169 of file lpx.h.

Member Data Documentation

◆ 

union { ... }

◆ id

int ArdourSurface::LP_X::LaunchPadX::Pad::id

Definition at line 173 of file lpx.h.

◆ on_long_press

ButtonMethod ArdourSurface::LP_X::LaunchPadX::Pad::on_long_press

Definition at line 186 of file lpx.h.

◆ on_pad_press

PadMethod ArdourSurface::LP_X::LaunchPadX::Pad::on_pad_press

Definition at line 182 of file lpx.h.

◆ on_press

ButtonMethod ArdourSurface::LP_X::LaunchPadX::Pad::on_press

Definition at line 181 of file lpx.h.

◆ on_release

ButtonMethod ArdourSurface::LP_X::LaunchPadX::Pad::on_release

Definition at line 185 of file lpx.h.

◆ timeout_connection

sigc::connection ArdourSurface::LP_X::LaunchPadX::Pad::timeout_connection

Definition at line 188 of file lpx.h.

◆ x

int ArdourSurface::LP_X::LaunchPadX::Pad::x

Definition at line 174 of file lpx.h.

◆ y

int ArdourSurface::LP_X::LaunchPadX::Pad::y

Definition at line 175 of file lpx.h.


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