add misc.h with some standard enumerations with proper prefixing and capitalizations.
[mikachu/openbox.git] / openbox / openbox.h
1 #ifndef __openbox_h
2 #define __openbox_h
3
4 #include "misc.h"
5
6 #include "render/render.h"
7 #include "render/theme.h"
8
9 #ifdef USE_LIBSN
10 #  define SN_API_NOT_YET_FROZEN
11 #  include <libsn/sn.h>
12 #endif
13
14 #include <glib.h>
15 #include <X11/Xlib.h>
16
17 extern RrInstance *ob_rr_inst;
18 extern RrTheme    *ob_rr_theme;
19
20 /*! The X display */
21 extern Display *ob_display; 
22
23 #ifdef USE_LIBSN
24 SnDisplay *ob_sn_display;
25 #endif
26
27 /*! The number of the screen on which we're running */
28 extern int      ob_screen;
29 /*! The root window */
30 extern Window   ob_root;
31
32 /* The state of execution of the window manager */
33 extern ObState ob_state;
34
35 /*! When set to true, Openbox will exit */
36 extern gboolean ob_shutdown;
37 /*! When set to true, Openbox will restart instead of shutting down */
38 extern gboolean ob_restart;
39 /*! When restarting, if this is not NULL, it will be executed instead of
40   restarting Openbox. */
41 extern char *ob_restart_path;
42
43 /*! Runtime option to specify running on a remote display */
44 extern gboolean ob_remote;
45 /*! Runtime option to run in synchronous mode */
46 extern gboolean ob_sync;
47
48 /*! The path of the rc file. If NULL the default paths are searched for one. */
49 extern char *ob_rc_path;
50
51 Cursor ob_cursor(ObCursor cursor);
52
53 KeyCode ob_keycode(ObKey key);
54
55 /* cuz i have nowhere better to put it right now... */
56 gboolean ob_pointer_pos(int *x, int *y);
57
58 #endif