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

int Inkscape::Preferences::getIntLimited ( Glib::ustring const &  pref_path,
int  def = 0,
int  min = INT_MIN,
int  max = INT_MAX 
) [inline]

Retrieve a limited integer.

The default value is returned if the actual value is larger than max or smaller than min. Do not use to store Boolean values.

pref_pathPath to the retrieved preference
defThe default value to return if the preference is not set
minMinimum value to return
maxMaximum value to return

Definition at line 307 of file preferences.h.

References getEntry(), and Inkscape::Preferences::Entry::getIntLimited().

Referenced by Inkscape::UI::PathManipulator::_getStrokeTolerance(), Inkscape::UI::ControlPointSelection::_keyboardRotate(), Inkscape::UI::Handle::dragged(), SPDesktopWidget::init(), pen_handle_motion_notify(), Inkscape::Filters::FilterGaussian::render(), sp_event_context_private_root_handler(), sp_flood_do_flood_fill(), sp_knot_handler(), and sp_transientize().

        return getEntry(pref_path).getIntLimited(def, min, max);

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