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

bool Inkscape::Preferences::Entry::getBool ( bool  def = false ) const [inline]

Interpret the preference as a Boolean value.

defDefault value if the preference is not set

Definition at line 514 of file preferences.h.

References Inkscape::Preferences::get(), and isValid().

Referenced by Inkscape::Preferences::getBool(), and Inkscape::UI::Widget::StyleSwatch::ToolObserver::notify().

    if (!this->isValid()) {
        return def;
    } else {
        return Inkscape::Preferences::get()->_extractBool(*this);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index