Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::NS_MCU::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 78 of file surfaces/mackie/types.h.

Constructor & Destructor Documentation

◆ ControlState() [1/6]

ArdourSurface::NS_MCU::ControlState::ControlState ( )
inline

Definition at line 80 of file surfaces/mackie/types.h.

◆ ControlState() [2/6]

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

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

◆ ControlState() [3/6]

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

Definition at line 85 of file surfaces/mackie/types.h.

◆ ControlState() [4/6]

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

Definition at line 86 of file surfaces/mackie/types.h.

◆ ControlState() [5/6]

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

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

◆ ControlState() [6/6]

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

Definition at line 88 of file surfaces/mackie/types.h.

Member Data Documentation

◆ button_state

ButtonState ArdourSurface::NS_MCU::ControlState::button_state

Definition at line 103 of file surfaces/mackie/types.h.

◆ delta

float ArdourSurface::NS_MCU::ControlState::delta

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

Definition at line 97 of file surfaces/mackie/types.h.

◆ led_state

LedState ArdourSurface::NS_MCU::ControlState::led_state

Definition at line 102 of file surfaces/mackie/types.h.

◆ pos

float ArdourSurface::NS_MCU::ControlState::pos

For faders. Between 0 and 1.

Definition at line 91 of file surfaces/mackie/types.h.

◆ sign

int ArdourSurface::NS_MCU::ControlState::sign

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

Definition at line 94 of file surfaces/mackie/types.h.

◆ ticks

unsigned int ArdourSurface::NS_MCU::ControlState::ticks

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

Definition at line 100 of file surfaces/mackie/types.h.


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