Lines Matching defs:def
138 * @param def Default value if the preference is not set.
140 inline bool getBool(bool def=false) const;
145 * @param def Default value if the preference is not set.
147 inline int getInt(int def=0) const;
156 * @param def Default value if the preference is not set.
160 inline int getIntLimited(int def=0, int min=INT_MIN, int max=INT_MAX) const;
165 * @param def Default value if the preference is not set.
168 inline double getDouble(double def=0.0, Glib::ustring const &unit = "") const;
176 * @param def Default value if the preference is not set.
181 inline double getDoubleLimited(double def=0.0, double min=DBL_MIN, double max=DBL_MAX, Glib::ustring const &unit = "") const;
198 inline guint32 getColor(guint32 def) const;
298 * @param def The default value to return if the preference is not set.
300 bool getBool(Glib::ustring const &pref_path, bool def=false) {
301 return getEntry(pref_path).getBool(def);
308 * @param def The default value to return if the preference is not set.
310 int getInt(Glib::ustring const &pref_path, int def=0) {
311 return getEntry(pref_path).getInt(def);
321 * @param def The default value to return if the preference is not set.
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);
329 double getDouble(Glib::ustring const &pref_path, double def=0.0, Glib::ustring const &unit = "") {
330 return getEntry(pref_path).getDouble(def, unit);
340 * @param def The default value to return if the preference is not set.
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);
367 guint32 getColor(Glib::ustring const &pref_path, guint32 def=0x000000ff) {
368 return getEntry(pref_path).getColor(def);
580 inline bool Preferences::Entry::getBool(bool def) const
583 return def;
589 inline int Preferences::Entry::getInt(int def) const
592 return def;
598 inline int Preferences::Entry::getIntLimited(int def, int min, int max) const
601 return def;
604 return ( val >= min && val <= max ? val : def );
608 inline double Preferences::Entry::getDouble(double def, Glib::ustring const &unit) const
611 return def;
619 inline double Preferences::Entry::getDoubleLimited(double def, double min, double max, Glib::ustring const &unit) const
622 return def;
624 double val = def;
630 return ( val >= min && val <= max ? val : def );
652 inline guint32 Preferences::Entry::getColor(guint32 def) const
655 return def;