Ardour  8.7-14-g57a6773833
ArdourSurface::US2400::ControlState Struct Reference

#include <types.h>

Public Member Functions

 ControlState ()
 
 ControlState (LedState ls)
 
 ControlState (LedState ls, float flt)
 
 ControlState (float flt)
 
 ControlState (float flt, unsigned int tcks)
 
 ControlState (ButtonState bs)
 

Public Attributes

float pos
 For faders. Between 0 and 1. More...
 
int sign
 For pots. Sign. Either -1 or 1;. More...
 
float delta
 For pots. Signed value of total movement. Between 0 and 1. More...
 
unsigned int ticks
 For pots. Unsigned number of ticks. Usually between 1 and 16. More...
 
LedState led_state
 
ButtonState button_state
 

Detailed Description

Contains the state for a control, with some convenience constructors

Definition at line 74 of file surfaces/us2400/types.h.

Constructor & Destructor Documentation

◆ ControlState() [1/6]

ArdourSurface::US2400::ControlState::ControlState ( )
inline

Definition at line 76 of file surfaces/us2400/types.h.

◆ ControlState() [2/6]

ArdourSurface::US2400::ControlState::ControlState ( LedState  ls)
inline

Definition at line 78 of file surfaces/us2400/types.h.

◆ ControlState() [3/6]

ArdourSurface::US2400::ControlState::ControlState ( LedState  ls,
float  flt 
)
inline

Definition at line 81 of file surfaces/us2400/types.h.

◆ ControlState() [4/6]

ArdourSurface::US2400::ControlState::ControlState ( float  flt)
inline

Definition at line 82 of file surfaces/us2400/types.h.

◆ ControlState() [5/6]

ArdourSurface::US2400::ControlState::ControlState ( float  flt,
unsigned int  tcks 
)
inline

Definition at line 83 of file surfaces/us2400/types.h.

◆ ControlState() [6/6]

ArdourSurface::US2400::ControlState::ControlState ( ButtonState  bs)
inline

Definition at line 84 of file surfaces/us2400/types.h.

Member Data Documentation

◆ button_state

ButtonState ArdourSurface::US2400::ControlState::button_state

Definition at line 99 of file surfaces/us2400/types.h.

◆ delta

float ArdourSurface::US2400::ControlState::delta

For pots. Signed value of total movement. Between 0 and 1.

Definition at line 93 of file surfaces/us2400/types.h.

◆ led_state

LedState ArdourSurface::US2400::ControlState::led_state

Definition at line 98 of file surfaces/us2400/types.h.

◆ pos

float ArdourSurface::US2400::ControlState::pos

For faders. Between 0 and 1.

Definition at line 87 of file surfaces/us2400/types.h.

◆ sign

int ArdourSurface::US2400::ControlState::sign

For pots. Sign. Either -1 or 1;.

Definition at line 90 of file surfaces/us2400/types.h.

◆ ticks

unsigned int ArdourSurface::US2400::ControlState::ticks

For pots. Unsigned number of ticks. Usually between 1 and 16.

Definition at line 96 of file surfaces/us2400/types.h.


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