Home
last modified time | relevance | path

Searched refs:defaultvalue (Results 1 – 2 of 2) sorted by relevance

/haiku/src/apps/pulse/
H A DPrefs.cpp183 Prefs::GetInt(const char *name, int *value, int *defaultvalue) in GetInt() argument
187 *value = *defaultvalue; in GetInt()
188 if (fFile->WriteAttr(name, B_INT32_TYPE, 0, defaultvalue, 4) < 0) { in GetInt()
202 Prefs::GetBool(const char *name, bool *value, bool *defaultvalue) in GetBool() argument
206 *value = *defaultvalue; in GetBool()
207 if (fFile->WriteAttr(name, B_BOOL_TYPE, 0, defaultvalue, 1) < 0) { in GetBool()
221 Prefs::GetRect(const char *name, BRect *value, BRect *defaultvalue) in GetRect() argument
225 *value = *defaultvalue; in GetRect()
226 if (fFile->WriteAttr(name, B_RECT_TYPE, 0, defaultvalue, sizeof(BRect)) < 0) { in GetRect()
H A DPrefs.h32 bool GetInt(const char *name, int *value, int *defaultvalue);
33 bool GetBool(const char *name, bool *value, bool *defaultvalue);
34 bool GetRect(const char *name, BRect *value, BRect *defaultvalue);