Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

Inkscape::Preferences::Entry Class Reference

#include <preferences.h>

List of all members.


Detailed Description

Data type representing a typeless value of a preference.

This is passed to the observer in the notify() method. To retrieve useful data from it, use its member functions. Setting any preference using the Preferences class invalidates this object, so use its get methods before doing so.

Definition at line 117 of file preferences.h.


Public Member Functions

 Entry (Entry const &other)
bool getBool (bool def=false) const
 Interpret the preference as a Boolean value.
double getDouble (double def=0.0) const
 Interpret the preference as a floating point value.
double getDoubleLimited (double def=0.0, double min=DBL_MIN, double max=DBL_MAX) const
 Interpret the preference as a limited floating point value.
Glib::ustring getEntryName () const
 Get the last component of the preference's path.
SPCSSAttr * getInheritedStyle () const
 Interpret the preference as a CSS style with directory-based inheritance.
int getInt (int def=0) const
 Interpret the preference as an integer.
int getIntLimited (int def=0, int min=INT_MIN, int max=INT_MAX) const
 Interpret the preference as a limited integer.
Glib::ustring const & getPath () const
 Get the full path of the preference described by this Entry.
Glib::ustring getString () const
 Interpret the preference as an UTF-8 string.
SPCSSAttr * getStyle () const
 Interpret the preference as a CSS style.
bool isValid () const
 Check whether the received entry is valid.

Private Member Functions

 Entry (Glib::ustring const &path, void const *v)

Private Attributes

Glib::ustring _pref_path
void const * _value

Friends

class Preferences

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

Generated by  Doxygen 1.6.0   Back to index