Skip to Main Content
Volume 7A: XView Programming Manual
book

Volume 7A: XView Programming Manual

by Dan Heller
October 1994
Intermediate to advanced content levelIntermediate to advanced
770 pages
22h 58m
English
O'Reilly Media, Inc.
Content preview from Volume 7A: XView Programming Manual
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
void
defaults_set_integer(resource, value)
char *resource;
int value;
defaults_get_integer() looks up the name-class pair in the resource database and
returns the resulting integer value. If the database does not contain the resource, the default
value is returned.
defaults_get_integer_check() looks up the name-class pair in the resource data-
base and returns the resulting integer value. If the value in the database is not between the
values minimum and maximum
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Volume 6A: Motif Programming Manual

Volume 6A: Motif Programming Manual

David Brennan, Dan Heller, Paula Ferguson
Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization

Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization

Alejandro Terrazas, John Ostuni, Michael Barlow

Publisher Resources

ISBN: 9780937175873