Inkscape
Vector Graphics Editor
|
#include <preferences.h>
Public Member Functions | |
Pref (Glib::ustring path, int def=0, int min=INT_MIN, int max=INT_MAX) | |
![]() | |
operator const int & () 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 | |
int | min |
int | max |
![]() | |
int | 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, int def) | |
PrefBase (PrefBase const &)=delete | |
PrefBase & | operator= (PrefBase const &)=delete |
void | init () |
void | act () |
void | assign (int const &val2) |
void | enable () |
void | disable () |
void | notify (Preferences::Entry const &e) override |
Notification about a preference change. | |
![]() | |
int | val |
Definition at line 848 of file preferences.h.
|
inline |
Definition at line 852 of file preferences.h.
References init().
|
inlineprivate |
Definition at line 856 of file preferences.h.
References Inkscape::Preferences::Entry::getIntLimited().
|
inlineprivate |
Definition at line 855 of file preferences.h.
References Inkscape::Preferences::get(), and Inkscape::Preferences::getIntLimited().
int Inkscape::Pref< int >::max |
Definition at line 851 of file preferences.h.
Referenced by Inkscape::UI::Tools::EraserTool::EraserTool().
int Inkscape::Pref< int >::min |
Definition at line 851 of file preferences.h.
Referenced by Inkscape::UI::Tools::EraserTool::EraserTool().
|
private |
Definition at line 854 of file preferences.h.