Ardour
9.0-pre0-582-g084a23a80d
|
#include <button.h>
Public Types | |
enum | ID { Track , Send , Pan , Plugin , Eq , Dyn , Left , Right , ChannelLeft , ChannelRight , Flip , View , NameValue , TimecodeBeats , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , MidiTracks , Inputs , AudioTracks , AudioInstruments , Aux , Busses , Outputs , User , Read , Write , Trim , Touch , Latch , Grp , Save , Undo , Cancel , Enter , Marker , Nudge , Loop , Drop , Replace , Click , ClearSolo , Rewind , Ffwd , Stop , Play , Record , CursorUp , CursorDown , CursorLeft , CursorRight , Zoom , Scrub , UserA , UserB , FinalGlobalButton , Shift , Option , Ctrl , CmdAlt , RecEnable , Solo , Mute , Select , VSelect , FaderTouch , MasterFaderTouch } |
Public Member Functions | |
Button (Surface &s, ID bid, int did, std::string name, Group &group) | |
MidiByteArray | zero () |
MidiByteArray | set_state (LedState ls) |
ID | bid () const |
Surface & | surface () const |
void | pressed () |
void | released () |
int32_t | long_press_count () |
Public Member Functions inherited from ArdourSurface::NS_MCU::Control | |
Control (int id, std::string name, Group &group) | |
virtual | ~Control () |
int | id () const |
const std::string & | name () const |
Group & | group () const |
bool | in_use () const |
void | set_in_use (bool) |
std::shared_ptr< ARDOUR::AutomationControl > | control () const |
virtual void | set_control (std::shared_ptr< ARDOUR::AutomationControl >) |
float | get_value () |
void | set_value (float val, PBD::Controllable::GroupControlDisposition gcd=PBD::Controllable::UseGroup) |
virtual void | start_touch (Temporal::timepos_t const &when) |
virtual void | stop_touch (Temporal::timepos_t const &when) |
Static Public Member Functions | |
static Control * | factory (Surface &surface, Button::ID bid, int id, const std::string &, Group &group) |
static int | name_to_id (const std::string &name) |
static std::string | id_to_name (Button::ID) |
Private Attributes | |
Surface & | _surface |
ID | _bid |
Led | _led |
PBD::microseconds_t | press_time |
Additional Inherited Members | |
Public Attributes inherited from ArdourSurface::NS_MCU::Control | |
sigc::connection | in_use_connection |
Control * | in_use_touch_control |
Protected Attributes inherited from ArdourSurface::NS_MCU::Control | |
std::shared_ptr< ARDOUR::AutomationControl > | normal_ac |
Definition at line 33 of file surfaces/mackie/button.h.
Definition at line 41 of file surfaces/mackie/button.h.
|
inline |
Definition at line 129 of file surfaces/mackie/button.h.
|
inline |
Definition at line 139 of file surfaces/mackie/button.h.
|
static |
|
static |
int32_t ArdourSurface::NS_MCU::Button::long_press_count | ( | ) |
|
static |
void ArdourSurface::NS_MCU::Button::pressed | ( | ) |
void ArdourSurface::NS_MCU::Button::released | ( | ) |
|
inline |
Definition at line 137 of file surfaces/mackie/button.h.
|
inline |
Definition at line 145 of file surfaces/mackie/button.h.
|
inlinevirtual |
Implements ArdourSurface::NS_MCU::Control.
Definition at line 136 of file surfaces/mackie/button.h.
|
private |
Definition at line 154 of file surfaces/mackie/button.h.
|
private |
Definition at line 155 of file surfaces/mackie/button.h.
|
private |
Definition at line 153 of file surfaces/mackie/button.h.
|
private |
Definition at line 156 of file surfaces/mackie/button.h.