Inkscape
Vector Graphics Editor
|
#include <preferences.h>
Public Member Functions | |
Pref (Glib::ustring path, bool def=false) | |
![]() | |
operator const bool & () 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 () |
Private Member Functions | |
auto | read () const |
auto | changed (Preferences::Entry const &e) const |
Private Attributes | |
friend | PrefBase |
Additional Inherited Members | |
![]() | |
bool | 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. | |
![]() | |
PrefBase (Glib::ustring path, bool def) | |
PrefBase (PrefBase const &)=delete | |
PrefBase & | operator= (PrefBase const &)=delete |
void | init () |
void | act () |
void | assign (bool const &val2) |
void | enable () |
void | disable () |
void | notify (Preferences::Entry const &e) override |
Notification about a preference change. | |
![]() | |
bool | val |
Definition at line 837 of file preferences.h.
|
inline |
Definition at line 840 of file preferences.h.
References init().
|
inlineprivate |
Definition at line 844 of file preferences.h.
References Inkscape::Preferences::Entry::getBool().
|
inlineprivate |
Definition at line 843 of file preferences.h.
References Inkscape::Preferences::get(), and Inkscape::Preferences::getBool().
|
private |
Definition at line 842 of file preferences.h.