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

#include <preferences.h>

Inheritance diagram for Inkscape::Pref< void >:
Inkscape::Preferences::Observer

Public Member Functions

 Pref (Glib::ustring path)
 
 Pref (Pref const &)=delete
 
Prefoperator= (Pref const &)=delete
 
void set_enabled (bool enabled)
 
- Public Member Functions inherited from Inkscape::Preferences::Observer
 Observer (Glib::ustring path)
 Constructor.
 
virtual ~Observer ()
 

Public Attributes

std::function< void()> action
 
- Public Attributes inherited from Inkscape::Preferences::Observer
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.
 

Detailed Description

Definition at line 887 of file preferences.h.

Constructor & Destructor Documentation

◆ Pref() [1/2]

Inkscape::Pref< void >::Pref ( Glib::ustring  path)
inline

Definition at line 892 of file preferences.h.

◆ Pref() [2/2]

Inkscape::Pref< void >::Pref ( Pref< void > const &  )
delete

Member Function Documentation

◆ disable()

void Inkscape::Pref< void >::disable ( )
inlineprivate

◆ enable()

void Inkscape::Pref< void >::enable ( )
inlineprivate

◆ notify()

void Inkscape::Pref< void >::notify ( Preferences::Entry const &  new_val)
inlineoverrideprivatevirtual

Notification about a preference change.

Parameters
new_valEntry object containing information about the modified preference.

Implements Inkscape::Preferences::Observer.

Definition at line 901 of file preferences.h.

◆ operator=()

Pref & Inkscape::Pref< void >::operator= ( Pref< void > const &  )
delete

◆ set_enabled()

void Inkscape::Pref< void >::set_enabled ( bool  enabled)
inline

Definition at line 896 of file preferences.h.

Member Data Documentation

◆ action

std::function<void()> Inkscape::Pref< void >::action

Definition at line 890 of file preferences.h.


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