Lines Matching defs:max
153 * larger than @c max or smaller than @c min. Do not use to store
158 * @param max Maximum value allowed to return.
160 inline int getIntLimited(int def=0, int min=INT_MIN, int max=INT_MAX) const;
174 * larger than @c max or smaller than @c min.
178 * @param max Maximum value allowed to return.
181 inline double getDoubleLimited(double def=0.0, double min=DBL_MIN, double max=DBL_MAX, Glib::ustring const &unit = "") const;
317 * The default value is returned if the actual value is larger than @c max
323 * @param max Maximum value to return.
325 int getIntLimited(Glib::ustring const &pref_path, int def=0, int min=INT_MIN, int max=INT_MAX) {
326 return getEntry(pref_path).getIntLimited(def, min, max);
336 * The default value is returned if the actual value is larger than @c max
342 * @param max Maximum value to return.
345 double getDoubleLimited(Glib::ustring const &pref_path, double def=0.0, double min=DBL_MIN, double max=DBL_MAX, Glib::ustring const &unit = "") {
346 return getEntry(pref_path).getDoubleLimited(def, min, max, unit);
598 inline int Preferences::Entry::getIntLimited(int def, int min, int max) const
604 return ( val >= min && val <= max ? val : def );
619 inline double Preferences::Entry::getDoubleLimited(double def, double min, double max, Glib::ustring const &unit) const
630 return ( val >= min && val <= max ? val : def );