Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::Push2::Button Struct Reference

#include <push2.h>

Inheritance diagram for ArdourSurface::Push2::Button:
[legend]

Public Member Functions

 Button (ButtonID bb, uint8_t ex)
 
 Button (ButtonID bb, uint8_t ex, void(Push2::*press)())
 
 Button (ButtonID bb, uint8_t ex, void(Push2::*press)(), void(Push2::*release)())
 
 Button (ButtonID bb, uint8_t ex, void(Push2::*press)(), void(Push2::*release)(), void(Push2::*long_press)())
 
MidiByteArray state_msg () const
 
int controller_number () const
 
- Public Member Functions inherited from ArdourSurface::Push2::LED
 LED (uint8_t e)
 
virtual ~LED ()
 
uint8_t extra () const
 
uint8_t color_index () const
 
State state () const
 
void set_color (uint8_t color_index)
 
void set_state (State state)
 

Public Attributes

ButtonID id
 
void(Push2::* press_method )()
 
void(Push2::* release_method )()
 
void(Push2::* long_press_method )()
 
sigc::connection timeout_connection
 

Additional Inherited Members

- Public Types inherited from ArdourSurface::Push2::LED
enum  State {
  NoTransition , OneShot24th , OneShot16th , OneShot8th ,
  OneShot4th , OneShot2th , Pulsing24th , Pulsing16th ,
  Pulsing8th , Pulsing4th , Pulsing2th , Blinking24th ,
  Blinking16th , Blinking8th , Blinking4th , Blinking2th
}
 
enum  Colors {
  Black = 0 , Red = 127 , Green = 126 , Blue = 125 ,
  DarkGray = 124 , LightGray = 123 , White = 122
}
 
- Protected Attributes inherited from ArdourSurface::Push2::LED
uint8_t _extra
 
uint8_t _color_index
 
State _state
 

Detailed Description

Definition at line 197 of file push2.h.

Constructor & Destructor Documentation

◆ Button() [1/4]

ArdourSurface::Push2::Button::Button ( ButtonID  bb,
uint8_t  ex 
)
inline

Definition at line 198 of file push2.h.

◆ Button() [2/4]

ArdourSurface::Push2::Button::Button ( ButtonID  bb,
uint8_t  ex,
void(Push2::*)()  press 
)
inline

Definition at line 206 of file push2.h.

◆ Button() [3/4]

ArdourSurface::Push2::Button::Button ( ButtonID  bb,
uint8_t  ex,
void(Push2::*)()  press,
void(Push2::*)()  release 
)
inline

Definition at line 214 of file push2.h.

◆ Button() [4/4]

ArdourSurface::Push2::Button::Button ( ButtonID  bb,
uint8_t  ex,
void(Push2::*)()  press,
void(Push2::*)()  release,
void(Push2::*)()  long_press 
)
inline

Definition at line 222 of file push2.h.

Member Function Documentation

◆ controller_number()

int ArdourSurface::Push2::Button::controller_number ( ) const
inline

Definition at line 231 of file push2.h.

◆ state_msg()

MidiByteArray ArdourSurface::Push2::Button::state_msg ( ) const
inlinevirtual

Implements ArdourSurface::Push2::LED.

Definition at line 230 of file push2.h.

Member Data Documentation

◆ id

ButtonID ArdourSurface::Push2::Button::id

Definition at line 233 of file push2.h.

◆ long_press_method

void(Push2::* ArdourSurface::Push2::Button::long_press_method) ()

Definition at line 236 of file push2.h.

◆ press_method

void(Push2::* ArdourSurface::Push2::Button::press_method) ()

Definition at line 234 of file push2.h.

◆ release_method

void(Push2::* ArdourSurface::Push2::Button::release_method) ()

Definition at line 235 of file push2.h.

◆ timeout_connection

sigc::connection ArdourSurface::Push2::Button::timeout_connection

Definition at line 237 of file push2.h.


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