Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::M2Button Class Reference

#include <m2_button.h>

Inheritance diagram for ArdourSurface::M2Button:
[legend]

Public Member Functions

 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 ()
 
virtual bool active () const
 

Protected Attributes

bool _pressed
 
bool _blink
 
bool _ignore_release
 
uint8_t _lightness
 
uint32_t _rgba
 

Additional Inherited Members

- Public Attributes inherited from ArdourSurface::M2ButtonInterface
PBD::Signal< void(bool)> changed
 
PBD::Signal< void()> pressed
 
PBD::Signal< void()> released
 

Detailed Description

Definition at line 56 of file m2_button.h.

Constructor & Destructor Documentation

◆ M2Button()

ArdourSurface::M2Button::M2Button ( )
inline

Definition at line 59 of file m2_button.h.

Member Function Documentation

◆ color()

uint32_t ArdourSurface::M2Button::color ( float  blink) const
inlinevirtual

Reimplemented from ArdourSurface::M2ButtonInterface.

Definition at line 117 of file m2_button.h.

◆ ignore_release()

void ArdourSurface::M2Button::ignore_release ( )
inlinevirtual

Reimplemented from ArdourSurface::M2ButtonInterface.

Definition at line 84 of file m2_button.h.

◆ is_pressed()

bool ArdourSurface::M2Button::is_pressed ( ) const
inlinevirtual

Reimplemented from ArdourSurface::M2ButtonInterface.

Definition at line 82 of file m2_button.h.

◆ lightness()

uint8_t ArdourSurface::M2Button::lightness ( float  blink) const
inlinevirtual

Reimplemented from ArdourSurface::M2ButtonInterface.

Definition at line 110 of file m2_button.h.

◆ set_active()

virtual bool ArdourSurface::M2Button::set_active ( bool  a)
inlinevirtual

Reimplemented from ArdourSurface::M2ButtonInterface.

Reimplemented in ArdourSurface::M2StatelessButton.

Definition at line 91 of file m2_button.h.

◆ set_blinking()

void ArdourSurface::M2Button::set_blinking ( bool  en)
inlinevirtual

Reimplemented from ArdourSurface::M2ButtonInterface.

Definition at line 69 of file m2_button.h.

◆ set_color()

virtual void ArdourSurface::M2Button::set_color ( uint32_t  rgba)
inlinevirtual

Reimplemented from ArdourSurface::M2ButtonInterface.

Definition at line 73 of file m2_button.h.

Member Data Documentation

◆ _blink

bool ArdourSurface::M2Button::_blink
protected

Definition at line 128 of file m2_button.h.

◆ _ignore_release

bool ArdourSurface::M2Button::_ignore_release
protected

Definition at line 129 of file m2_button.h.

◆ _lightness

uint8_t ArdourSurface::M2Button::_lightness
protected

Definition at line 130 of file m2_button.h.

◆ _pressed

bool ArdourSurface::M2Button::_pressed
protected

Definition at line 127 of file m2_button.h.

◆ _rgba

uint32_t ArdourSurface::M2Button::_rgba
protected

Definition at line 131 of file m2_button.h.


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