Ardour  8.7-15-gadf511264b
ArdourSurface::M2ToggleButton Class Reference

#include <m2_button.h>

Inheritance diagram for ArdourSurface::M2ToggleButton:
[legend]

Public Member Functions

 M2ToggleButton ()
 
bool active () const
 
- Public Member Functions inherited from ArdourSurface::M2Button
 M2Button ()
 
void set_blinking (bool en)
 
virtual void set_color (uint32_t rgba)
 
bool is_pressed () const
 
void ignore_release ()
 
virtual bool set_active (bool a)
 
uint8_t lightness (float blink) const
 
uint32_t color (float blink) const
 
- Public Member Functions inherited from ArdourSurface::M2ButtonInterface
 M2ButtonInterface ()
 
virtual ~M2ButtonInterface ()
 

Public Attributes

PBD::Signal1< void, bool > toggled
 
- Public Attributes inherited from ArdourSurface::M2ButtonInterface
PBD::Signal1< void, bool > changed
 
PBD::Signal0< void > pressed
 
PBD::Signal0< void > released
 

Protected Member Functions

void change_event (bool down)
 

Protected Attributes

PBD::ScopedConnection changed_connection
 
bool _active
 
- Protected Attributes inherited from ArdourSurface::M2Button
bool _pressed
 
bool _blink
 
bool _ignore_release
 
uint8_t _lightness
 
uint32_t _rgba
 

Detailed Description

Definition at line 152 of file m2_button.h.

Constructor & Destructor Documentation

◆ M2ToggleButton()

ArdourSurface::M2ToggleButton::M2ToggleButton ( )
inline

Definition at line 155 of file m2_button.h.

Member Function Documentation

◆ active()

bool ArdourSurface::M2ToggleButton::active ( ) const
inlinevirtual

Reimplemented from ArdourSurface::M2ButtonInterface.

Definition at line 163 of file m2_button.h.

◆ change_event()

void ArdourSurface::M2ToggleButton::change_event ( bool  down)
inlineprotected

Definition at line 166 of file m2_button.h.

Member Data Documentation

◆ _active

bool ArdourSurface::M2ToggleButton::_active
protected

Definition at line 174 of file m2_button.h.

◆ changed_connection

PBD::ScopedConnection ArdourSurface::M2ToggleButton::changed_connection
protected

Definition at line 173 of file m2_button.h.

◆ toggled

PBD::Signal1<void, bool> ArdourSurface::M2ToggleButton::toggled

Definition at line 162 of file m2_button.h.


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