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

#include <m2_encoder.h>

Inheritance diagram for ArdourSurface::M2Encoder:
[legend]

Public Member Functions

 M2Encoder (unsigned int upper=1000)
 
float value () const
 
float range () const
 
bool set_value (unsigned int v)
 
- Public Member Functions inherited from ArdourSurface::M2EncoderInterface
 M2EncoderInterface ()
 
virtual ~M2EncoderInterface ()
 

Protected Attributes

unsigned int _upper
 
unsigned int _value
 
unsigned int _wrapcnt
 
bool _initialized
 

Additional Inherited Members

- Public Attributes inherited from ArdourSurface::M2EncoderInterface
PBD::Signal< void(int)> changed
 

Detailed Description

Definition at line 42 of file m2_encoder.h.

Constructor & Destructor Documentation

◆ M2Encoder()

ArdourSurface::M2Encoder::M2Encoder ( unsigned int  upper = 1000)
inline

Definition at line 45 of file m2_encoder.h.

Member Function Documentation

◆ range()

float ArdourSurface::M2Encoder::range ( ) const
inlinevirtual

Reimplemented from ArdourSurface::M2EncoderInterface.

Definition at line 56 of file m2_encoder.h.

◆ set_value()

bool ArdourSurface::M2Encoder::set_value ( unsigned int  v)
inlinevirtual

Reimplemented from ArdourSurface::M2EncoderInterface.

Definition at line 58 of file m2_encoder.h.

◆ value()

float ArdourSurface::M2Encoder::value ( ) const
inlinevirtual

Reimplemented from ArdourSurface::M2EncoderInterface.

Definition at line 55 of file m2_encoder.h.

Member Data Documentation

◆ _initialized

bool ArdourSurface::M2Encoder::_initialized
protected

Definition at line 91 of file m2_encoder.h.

◆ _upper

unsigned int ArdourSurface::M2Encoder::_upper
protected

Definition at line 88 of file m2_encoder.h.

◆ _value

unsigned int ArdourSurface::M2Encoder::_value
protected

Definition at line 89 of file m2_encoder.h.

◆ _wrapcnt

unsigned int ArdourSurface::M2Encoder::_wrapcnt
protected

Definition at line 90 of file m2_encoder.h.


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