#include "properties.hh"
Public Types | |
using | DelCb = std::function< void()> |
using | StringValueF = std::function< void(const String &, const Value &)> |
Public Member Functions | |
Value | get_value () const override |
bool | getb () const |
double | getd () const |
int64 | getn () const |
String | gets () const |
uint64 | getu () const |
Preference (const Param &, const StringValueF &=nullptr) | |
bool | set (const String &string) |
bool | set (const Value &value) |
bool | set_value (const Value &v) override |
virtual | ~Preference () |
![]() | |
ChoiceS | choices () const override |
double | get_double () const |
double | get_max () const override |
double | get_min () const override |
double | get_normalized () const override |
double | get_step () const override |
String | get_text () const override |
String | ident () const override |
Value | initial () const |
bool | is_numeric () const override |
String | label () const override |
String | nick () const override |
ParameterC | parameter () const |
MinMaxStep | range () const |
void | reset () override |
bool | set_normalized (double v) override |
bool | set_text (String txt) override |
String | unit () const override |
![]() | |
void | emit_event (const String &type, const String &detail, const ValueR fields={}) override |
void | emit_notify (const String &detail) override |
ASE_USE_RESULT Connection | on_event (const String &eventselector, const EventHandler &eventhandler) override |
![]() | |
void | js_trigger (const String &eventselector, JsTrigger callback) |
![]() | |
String | blurb () const |
String | descr () const |
String | group () const |
String | hints () const |
Static Public Member Functions | |
static PreferenceP | find (const String &ident) |
static Value | get (const String &ident) |
static CStringS | list () |
static DelCb | listen (const std::function< void(const CStringS &)> &) |
static void | load_preferences (bool autosave) |
static void | save_preferences () |
Additional Inherited Members | |
![]() | |
Member<&Property::metadata_ > | metadata |
Member<&Property::name_ > | name |
Member<&Property::value_ > | value |
![]() | |
StringS | get_metadata () const override |
![]() | |
virtual | ~EmittableImpl () |
![]() | |
virtual | ~VirtualBase () noexcept=0 |
![]() | |
Property () | |
virtual | ~Property ()=0 |
![]() | |
ParameterC | parameter_ |
Class for preference parameters (global settings)
using DelCb = std::function<void()> |
using StringValueF = std::function<void(const String&, const Value&)> |
|
virtual |
Preference | ( | const Param & | param, |
const StringValueF & | cb = nullptr |
||
) |
String gets | ( | ) | const |
bool getb | ( | ) | const |
int64 getn | ( | ) | const |
uint64 getu | ( | ) | const |
double getd | ( | ) | const |
bool set | ( | const Value & | value | ) |
bool set | ( | const String & | string | ) |
|
overridevirtual |
Get the native property value.
Implements ParameterProperty.
|
overridevirtual |
Set the native property value.
Implements ParameterProperty.
|
static |
|
static |
|
static |
|
static |
|
static |