Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Ase::Property Class Referenceabstract

A Property allows querying, setting and monitoring of an object property. More...

#include "api.hh"

Inheritance diagram for Ase::Property:
[legend]

Public Member Functions

virtual String get_name () const
 
virtual void set_name (const String &n)
 
virtual StringS get_metadata () const =0
 
virtual void set_metadata (const StringS &md)
 
virtual String ident () const =0
 Unique name (per owner) of this Property.
 
virtual String label () const =0
 Preferred user interface name.
 
virtual String nick () const =0
 Abbreviated user interface name, usually not more than 6 characters.
 
virtual String unit () const =0
 Units of the values within range.
 
virtual double get_min () const =0
 Get the minimum property value, converted to double.
 
virtual double get_max () const =0
 Get the maximum property value, converted to double.
 
virtual double get_step () const =0
 Get the property value stepping, converted to double.
 
virtual void reset ()=0
 Assign default as normalized property value.
 
virtual Value get_value () const =0
 Get the native property value.
 
virtual bool set_value (const Value &v)=0
 Set the native property value.
 
virtual double get_normalized () const =0
 Get the normalized property value, converted to double.
 
virtual bool set_normalized (double v)=0
 Set the normalized property value as double.
 
virtual String get_text () const =0
 Get the current property value, converted to a text String.
 
virtual bool set_text (String v)=0
 Set the current property value as a text String.
 
virtual bool is_numeric () const =0
 Whether the property settings can be represented as a floating point number.
 
virtual ChoiceS choices () const =0
 Enumerate choices for choosable properties.
 
String hints () const
 Hints for parameter handling (metadata).
 
String blurb () const
 Short description for user interface tooltips (metadata).
 
String descr () const
 Elaborate description, e.g. for help dialogs (metadata).
 
String group () const
 Group name for parameters of similar function (metadata).
 
- Public Member Functions inherited from Ase::Emittable
virtual void emit_event (const String &type, const String &detail, const ValueR fields={})=0
 
virtual void emit_notify (const String &detail)=0
 
void js_trigger (const String &eventselector, JsTrigger callback)
 
- Public Member Functions inherited from std::enable_shared_from_this< SharedBase >
enable_shared_from_this (T... args)
 
operator= (T... args)
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 
~enable_shared_from_this (T... args)
 

Public Attributes

Member<&Property::get_name,&Property::set_name > name
 
Member<&Property::get_value,&Property::set_valuevalue
 
Member<&Property::get_metadata,&Property::set_metadata > metadata
 
- Public Attributes inherited from Ase::Emittable
const EventHandlereventhandler
 

Detailed Description

A Property allows querying, setting and monitoring of an object property.

Definition at line 135 of file api.hh.

Constructor & Destructor Documentation

◆ Property()

Ase::Property::Property ( )
explicitprotected

Definition at line 16 of file properties.cc.

◆ ~Property()

Ase::Property::~Property ( )
protectedpure virtual

Definition at line 22 of file properties.cc.

Member Function Documentation

◆ blurb()

String Ase::Property::blurb ( ) const

Short description for user interface tooltips (metadata).

Definition at line 461 of file parameter.cc.

◆ choices()

virtual ChoiceS Ase::Property::choices ( ) const
pure virtual

Enumerate choices for choosable properties.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, Ase::ParameterProperty, and Ase::PropertyImpl.

◆ descr()

String Ase::Property::descr ( ) const

Elaborate description, e.g. for help dialogs (metadata).

Definition at line 467 of file parameter.cc.

◆ get_max()

virtual double Ase::Property::get_max ( ) const
pure virtual

Get the maximum property value, converted to double.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

◆ get_min()

virtual double Ase::Property::get_min ( ) const
pure virtual

Get the minimum property value, converted to double.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

◆ get_name()

String Ase::Property::get_name ( ) const
virtual

Definition at line 26 of file properties.cc.

◆ get_normalized()

virtual double Ase::Property::get_normalized ( ) const
pure virtual

Get the normalized property value, converted to double.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

◆ get_step()

virtual double Ase::Property::get_step ( ) const
pure virtual

Get the property value stepping, converted to double.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

◆ get_text()

virtual String Ase::Property::get_text ( ) const
pure virtual

Get the current property value, converted to a text String.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

◆ get_value()

virtual Value Ase::Property::get_value ( ) const
pure virtual

◆ group()

String Ase::Property::group ( ) const

Group name for parameters of similar function (metadata).

Definition at line 473 of file parameter.cc.

◆ hints()

String Ase::Property::hints ( ) const

Hints for parameter handling (metadata).

Definition at line 455 of file parameter.cc.

◆ ident()

virtual String Ase::Property::ident ( ) const
pure virtual

Unique name (per owner) of this Property.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

◆ is_numeric()

virtual bool Ase::Property::is_numeric ( ) const
pure virtual

Whether the property settings can be represented as a floating point number.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

◆ label()

virtual String Ase::Property::label ( ) const
pure virtual

Preferred user interface name.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

◆ nick()

virtual String Ase::Property::nick ( ) const
pure virtual

Abbreviated user interface name, usually not more than 6 characters.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

◆ reset()

virtual void Ase::Property::reset ( )
pure virtual

Assign default as normalized property value.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

◆ set_metadata()

void Ase::Property::set_metadata ( const StringS md)
virtual

Definition at line 38 of file properties.cc.

◆ set_name()

void Ase::Property::set_name ( const String n)
virtual

Definition at line 32 of file properties.cc.

◆ set_normalized()

virtual bool Ase::Property::set_normalized ( double  v)
pure virtual

Set the normalized property value as double.

Implemented in Ase::AudioPropertyImpl, Ase::ClapPropertyImpl, and Ase::ParameterProperty.

◆ set_text()

virtual bool Ase::Property::set_text ( String  v)
pure virtual

Set the current property value as a text String.

Implemented in Ase::ParameterProperty, Ase::ClapPropertyImpl, and Ase::AudioPropertyImpl.

◆ set_value()

virtual bool Ase::Property::set_value ( const Value v)
pure virtual

◆ unit()

virtual String Ase::Property::unit ( ) const
pure virtual

Units of the values within range.

Implemented in Ase::ClapPropertyImpl, Ase::AudioPropertyImpl, and Ase::ParameterProperty.

Member Data Documentation

◆ metadata

Member<&Property::get_metadata,&Property::set_metadata> Ase::Property::metadata

Definition at line 166 of file api.hh.

◆ name

Member<&Property::get_name,&Property::set_name> Ase::Property::name

Definition at line 164 of file api.hh.

◆ value

Definition at line 165 of file api.hh.


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