From http://www.jwz.org/xscreensaver/xscreensaver-5.30.tar.gz
[xscreensaver] / utils / resources.h
1 /* xscreensaver, Copyright (c) 1992-2014 Jamie Zawinski <jwz@jwz.org>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  */
11
12 #ifndef __XSCREENSAVER_RESOURCES_H__
13 #define __XSCREENSAVER_RESOURCES_H__
14
15 extern char *get_string_resource (Display*,char*,char*);
16 extern Bool get_boolean_resource (Display*,char*,char*);
17 extern int get_integer_resource (Display*,char*,char*);
18 extern double get_float_resource (Display*,char*,char*);
19 extern unsigned int get_pixel_resource (Display*,Colormap,char*,char*);
20 extern unsigned int get_minutes_resource (Display*,char*,char*);
21 extern unsigned int get_seconds_resource (Display*,char*,char*);
22 extern int parse_time (const char *string, Bool seconds_default_p,
23                        Bool silent_p);
24 extern Pixmap
25 xscreensaver_logo (Screen *screen, Visual *visual,
26                    Drawable drawable, Colormap cmap,
27                    unsigned long background_color,
28                    unsigned long **pixels_ret, int *npixels_ret,
29                    Pixmap *mask_ret,
30                    Bool big_p);
31
32
33 /* A utility function for event-handler functions:
34    Returns True if the event is a simple click, Space, Tab, etc.
35    Returns False otherwise.
36    The idea here is that most hacks interpret to clicks or basic
37    keypresses as "change it up".
38  */
39 extern Bool screenhack_event_helper (Display *, Window, XEvent *);
40
41 #endif /* __XSCREENSAVER_RESOURCES_H__ */