1 /* xscreensaver, Copyright (c) 1992-2014 Jamie Zawinski <jwz@jwz.org>
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
12 #ifndef __XSCREENSAVER_RESOURCES_H__
13 #define __XSCREENSAVER_RESOURCES_H__
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,
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,
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".
39 extern Bool screenhack_event_helper (Display *, Window, XEvent *);
41 #endif /* __XSCREENSAVER_RESOURCES_H__ */