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

#include <preferences.h>

Inheritance diagram for Inkscape::Pref< double >:
Inkscape::PrefBase< double > Inkscape::Preferences::Observer

Public Member Functions

 Pref (Glib::ustring path, double def=0.0, double min=DBL_MIN, double max=DBL_MAX)
 
- Public Member Functions inherited from Inkscape::PrefBase< double >
 operator const double & () 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 ()
 

Public Attributes

double min
 
double max
 
- Public Attributes inherited from Inkscape::PrefBase< double >
double 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.
 

Private Member Functions

auto read () const
 
auto changed (Preferences::Entry const &e) const
 

Private Attributes

friend PrefBase
 

Additional Inherited Members

- Protected Member Functions inherited from Inkscape::PrefBase< double >
 PrefBase (Glib::ustring path, double def)
 
 PrefBase (PrefBase const &)=delete
 
PrefBaseoperator= (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.
 
- Protected Attributes inherited from Inkscape::PrefBase< double >
double val
 

Detailed Description

Definition at line 860 of file preferences.h.

Constructor & Destructor Documentation

◆ Pref()

Inkscape::Pref< double >::Pref ( Glib::ustring  path,
double  def = 0.0,
double  min = DBL_MIN,
double  max = DBL_MAX 
)
inline

Definition at line 864 of file preferences.h.

References init().

Member Function Documentation

◆ changed()

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

Definition at line 868 of file preferences.h.

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

◆ read()

auto Inkscape::Pref< double >::read ( ) const
inlineprivate

Member Data Documentation

◆ max

double Inkscape::Pref< double >::max

Definition at line 863 of file preferences.h.

◆ min

double Inkscape::Pref< double >::min

Definition at line 863 of file preferences.h.

◆ PrefBase

friend Inkscape::Pref< double >::PrefBase
private

Definition at line 866 of file preferences.h.


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