]> icculus.org git repositories - dana/openbox.git/blob - openbox/openbox.h
add ability to set a texture to None
[dana/openbox.git] / openbox / openbox.h
1 #ifndef __openbox_h
2 #define __openbox_h
3
4 #ifdef USE_LIBSN
5 #  define SN_API_NOT_YET_FROZEN
6 #  include <libsn/sn.h>
7 #endif
8
9 #include <glib.h>
10 #include <X11/Xlib.h>
11
12 /*! The X display */
13 extern Display *ob_display; 
14
15 #ifdef USE_LIBSN
16 SnDisplay *ob_sn_display;
17 #endif
18
19 /*! The number of the screen on which we're running */
20 extern int      ob_screen;
21 /*! The root window */
22 extern Window   ob_root;
23
24 struct RrInstance;
25 extern struct RrInstance *ob_render_inst;
26
27 /*! States of execution for Openbox */
28 typedef enum {
29     State_Starting,
30     State_Exiting,
31     State_Running
32 } State;
33
34 /* The state of execution of the window manager */
35 extern State ob_state;
36
37 /*! When set to true, Openbox will exit */
38 extern gboolean ob_shutdown;
39 /*! When set to true, Openbox will restart instead of shutting down */
40 extern gboolean ob_restart;
41 /*! When restarting, if this is not NULL, it will be executed instead of
42   restarting Openbox. */
43 extern char *ob_restart_path;
44
45 /*! Runtime option to specify running on a remote display */
46 extern gboolean ob_remote;
47 /*! Runtime option to run in synchronous mode */
48 extern gboolean ob_sync;
49
50 typedef struct Cursors {
51     Cursor ptr;
52     Cursor busy;
53     Cursor move;
54     Cursor bl;
55     Cursor br;
56     Cursor tl;
57     Cursor tr;
58     Cursor t;
59     Cursor r;
60     Cursor b;
61     Cursor l;
62 } Cursors;
63 extern Cursors ob_cursors;
64
65 /*! The path of the rc file. If NULL the default paths are searched for one. */
66 extern char *ob_rc_path;
67
68 /* cuz i have nowhere better to put it right now... */
69 gboolean ob_pointer_pos(int *x, int *y);
70
71 #endif