Logo Search packages:      
Sourcecode: inkscape version File versions

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_path Path to the retrieved preference
def The default value to return if the preference is not set
min Minimum value to return
max Maximum value to return

Definition at line 302 of file preferences.h.

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

Referenced by Inkscape::UI::Dialogs::LayersPanel::LayersPanel(), pen_handle_motion_notify(), pencil_handle_motion_notify(), sp_desktop_widget_init(), 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);

Generated by  Doxygen 1.6.0   Back to index