Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Pref< Glib::ustring > Class Reference

#include <preferences.h>

Inheritance diagram for Inkscape::Pref< Glib::ustring >:
Inkscape::PrefBase< Glib::ustring > Inkscape::Preferences::Observer

Public Member Functions

 Pref (Glib::ustring path, Glib::ustring def="")
 
- Public Member Functions inherited from Inkscape::PrefBase< Glib::ustring >
 operator const Glib::ustring & () const
 The current value.
 
void set_enabled (bool enabled)
 Disable switch. If disabled, the Pref will stick at its default value.
 
- Public Member Functions inherited from Inkscape::Preferences::Observer
 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

- Public Attributes inherited from Inkscape::PrefBase< Glib::ustring >
Glib::ustring def
 The default value.
 
std::function< void()> action
 The action to perform when the value changes, if any.
 
- Public Attributes inherited from Inkscape::Preferences::Observer
Glib::ustring const observed_path
 Path which the observer watches.
 
- Protected Member Functions inherited from Inkscape::PrefBase< Glib::ustring >
 PrefBase (Glib::ustring path, Glib::ustring def)
 
 PrefBase (PrefBase const &)=delete
 
PrefBaseoperator= (PrefBase const &)=delete
 
void init ()
 
void act ()
 
void assign (Glib::ustring const &val2)
 
void enable ()
 
void disable ()
 
void notify (Preferences::Entry const &e) override
 Notification about a preference change.
 
- Protected Attributes inherited from Inkscape::PrefBase< Glib::ustring >
Glib::ustring val
 

Detailed Description

Definition at line 872 of file preferences.h.

Constructor & Destructor Documentation

◆ Pref()

Inkscape::Pref< Glib::ustring >::Pref ( Glib::ustring  path,
Glib::ustring  def = "" 
)
inline

Definition at line 875 of file preferences.h.

References init().

Member Function Documentation

◆ changed()

auto Inkscape::Pref< Glib::ustring >::changed ( Preferences::Entry const &  e) const
inlineprivate

Definition at line 883 of file preferences.h.

References Inkscape::Preferences::Entry::getString().

◆ read()

auto Inkscape::Pref< Glib::ustring >::read ( ) const
inlineprivate

Member Data Documentation

◆ PrefBase

friend Inkscape::Pref< Glib::ustring >::PrefBase
private

Definition at line 881 of file preferences.h.


The documentation for this class was generated from the following file: