Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{CompressorEditor.cpp}::ParameterWrapper Class Reference
Inheritance diagram for anonymous_namespace{CompressorEditor.cpp}::ParameterWrapper:
[legend]
Collaboration diagram for anonymous_namespace{CompressorEditor.cpp}::ParameterWrapper:
[legend]

Public Member Functions

 ParameterWrapper (const CompressorParameter &parameter)
 
double Min () const override
 
double Max () const override
 
double SliderMin () const override
 
double SliderMax () const override
 
double TextToSlider () const override
 
- Public Member Functions inherited from DynamicRangeProcessorParameter
virtual ~DynamicRangeProcessorParameter ()=default
 
virtual double Min () const =0
 
virtual double Max () const =0
 
virtual double SliderMin () const =0
 
virtual double SliderMax () const =0
 
virtual double TextToSlider () const =0
 

Public Attributes

const CompressorParametermParameter
 

Detailed Description

Definition at line 21 of file CompressorEditor.cpp.

Constructor & Destructor Documentation

◆ ParameterWrapper()

anonymous_namespace{CompressorEditor.cpp}::ParameterWrapper::ParameterWrapper ( const CompressorParameter parameter)
inline

Definition at line 24 of file CompressorEditor.cpp.

25 : mParameter { parameter }
26 {
27 }

Member Function Documentation

◆ Max()

double anonymous_namespace{CompressorEditor.cpp}::ParameterWrapper::Max ( ) const
inlineoverridevirtual

Implements DynamicRangeProcessorParameter.

Definition at line 34 of file CompressorEditor.cpp.

35 {
37 }
const Type scale
Scaling factor, for slider control.
const Type max
Maximum value.

◆ Min()

double anonymous_namespace{CompressorEditor.cpp}::ParameterWrapper::Min ( ) const
inlineoverridevirtual

Implements DynamicRangeProcessorParameter.

Definition at line 29 of file CompressorEditor.cpp.

30 {
32 }
const Type min
Minimum value.

◆ SliderMax()

double anonymous_namespace{CompressorEditor.cpp}::ParameterWrapper::SliderMax ( ) const
inlineoverridevirtual

Implements DynamicRangeProcessorParameter.

Definition at line 44 of file CompressorEditor.cpp.

45 {
46 return mParameter.max;
47 }

◆ SliderMin()

double anonymous_namespace{CompressorEditor.cpp}::ParameterWrapper::SliderMin ( ) const
inlineoverridevirtual

Implements DynamicRangeProcessorParameter.

Definition at line 39 of file CompressorEditor.cpp.

40 {
41 return mParameter.min;
42 }

◆ TextToSlider()

double anonymous_namespace{CompressorEditor.cpp}::ParameterWrapper::TextToSlider ( ) const
inlineoverridevirtual

Implements DynamicRangeProcessorParameter.

Definition at line 49 of file CompressorEditor.cpp.

50 {
51 return mParameter.scale;
52 }

Member Data Documentation

◆ mParameter

const CompressorParameter& anonymous_namespace{CompressorEditor.cpp}::ParameterWrapper::mParameter

Definition at line 54 of file CompressorEditor.cpp.


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