]> icculus.org git repositories - dana/openbox.git/blob - otk_c/screeninfo.h
nicer
[dana/openbox.git] / otk_c / screeninfo.h
1 // -*- mode: C; indent-tabs-mode: nil; -*-
2 #ifndef   __screeninfo_h
3 #define   __screeninfo_h
4
5 #include <X11/Xlib.h>
6 #include <Python.h>
7
8 extern PyTypeObject OtkScreenInfo_Type;
9
10 typedef struct OtkScreenInfo {
11   int screen;
12   Window root_window;
13
14   int depth;
15   Visual *visual;
16   Colormap colormap;
17
18   PyObject *display_string; // PyStringObject
19   PyObject *rect; // OtkRect
20 #ifdef XINERAMA
21   PyObject *xinerama_areas; // PyListObject[OtkRect]
22   Bool xinerama_active;
23 #endif
24 } OtkScreenInfo;
25
26 //! Creates an OtkScreenInfo for a screen
27 /*!
28   @param num The number of the screen on the display for which to fill the
29              struct with information. Must be a value >= 0.
30 */
31 PyObject *OtkScreenInfo_New(int num);
32
33 #endif // __screeninfo_h