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.

Parameters:
defDefault value if the preference is not set

Definition at line 529 of file preferences.h.

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

Referenced by Inkscape::Preferences::getBool(), PrefPusher::notify(), Inkscape::UI::Widget::StyleSwatch::ToolObserver::notify(), and Inkscape::UI::Dialog::InputDialogImpl::ConfPanel::Blink::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