Inkscape
Vector Graphics Editor
|
#include <preferences.h>
Public Member Functions | |
Pref (Glib::ustring path) | |
Pref (Pref const &)=delete | |
Pref & | operator= (Pref const &)=delete |
void | set_enabled (bool enabled) |
![]() | |
Observer (Glib::ustring path) | |
Constructor. | |
virtual | ~Observer () |
Public Attributes | |
std::function< void()> | action |
![]() | |
Glib::ustring const | observed_path |
Path which the observer watches. | |
Private Member Functions | |
void | enable () |
void | disable () |
void | notify (Preferences::Entry const &e) override |
Notification about a preference change. | |
Definition at line 887 of file preferences.h.
|
inline |
Definition at line 892 of file preferences.h.
|
delete |
|
inlineprivate |
Definition at line 900 of file preferences.h.
References Inkscape::Preferences::get(), and Inkscape::Preferences::removeObserver().
|
inlineprivate |
Definition at line 899 of file preferences.h.
References Inkscape::Preferences::addObserver(), and Inkscape::Preferences::get().
|
inlineoverrideprivatevirtual |
Notification about a preference change.
new_val | Entry object containing information about the modified preference. |
Implements Inkscape::Preferences::Observer.
Definition at line 901 of file preferences.h.
|
delete |
|
inline |
Definition at line 896 of file preferences.h.
std::function<void()> Inkscape::Pref< void >::action |
Definition at line 890 of file preferences.h.