Inkscape
Vector Graphics Editor
|
#include <preferences.h>
Public Member Functions | |
Pref (Glib::ustring path, double def=0.0, double min=DBL_MIN, double max=DBL_MAX) | |
![]() | |
operator const double & () const | |
The current value. | |
void | set_enabled (bool enabled) |
Disable switch. If disabled, the Pref will stick at its default value. | |
![]() | |
Observer (Glib::ustring path) | |
Constructor. | |
virtual | ~Observer () |
Public Attributes | |
double | min |
double | max |
![]() | |
double | def |
The default value. | |
std::function< void()> | action |
The action to perform when the value changes, if any. | |
![]() | |
Glib::ustring const | observed_path |
Path which the observer watches. | |
Private Member Functions | |
auto | read () const |
auto | changed (Preferences::Entry const &e) const |
Private Attributes | |
friend | PrefBase |
Additional Inherited Members | |
![]() | |
PrefBase (Glib::ustring path, double def) | |
PrefBase (PrefBase const &)=delete | |
PrefBase & | operator= (PrefBase const &)=delete |
void | init () |
void | act () |
void | assign (double const &val2) |
void | enable () |
void | disable () |
void | notify (Preferences::Entry const &e) override |
Notification about a preference change. | |
![]() | |
double | val |
Definition at line 860 of file preferences.h.
|
inline |
Definition at line 864 of file preferences.h.
References init().
|
inlineprivate |
Definition at line 868 of file preferences.h.
References Inkscape::Preferences::Entry::getDoubleLimited().
|
inlineprivate |
Definition at line 867 of file preferences.h.
References Inkscape::Preferences::get(), and Inkscape::Preferences::getDoubleLimited().
double Inkscape::Pref< double >::max |
Definition at line 863 of file preferences.h.
double Inkscape::Pref< double >::min |
Definition at line 863 of file preferences.h.
|
private |
Definition at line 866 of file preferences.h.