
defaults_get_boolean() looks up the name-class pair in the resource database and
returns TRUE if the value is one of the following:
• True
• Yes
• On
• Enabled
• Set
• Activated
• 1
It returns FALSE if the value is one of the following:
• False
• No
• Off
• Disabled
• Reset
• Cleared
• Deactivated
• 0
If the value is none of the above, a warning message will be displayed and the default value
will be returned. If the resource is not found, no error message is printed but the default
value is still returned.
defaults_set_boolean() sets the resource to the value specified.
17.2.2 Integer Resources
int
defaults_get_integer(name, class, default_value)
char *name;
char *class;
int default_value;
int
defaults_get_integer_check(name, class, default_value,
minimum, maximum)
char *name;
char *class;
int default_value;
int minimum;
int maximum;
386 XView Programming Manual