]> icculus.org git repositories - mikachu/openbox.git/blob - otk_c/screeninfo.h
add rect
[mikachu/openbox.git] / otk_c / screeninfo.h
1 // -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
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 struct OtkRect;
11
12 typedef struct OtkScreenInfo {
13   int screen;
14   Window root_window;
15
16   int depth;
17   Visual *visual;
18   Colormap colormap;
19
20   PyStringObject *display_string;
21   struct OtkRect *rect; // OtkRect
22 #ifdef XINERAMA
23   PyListObject *xinerama_areas; // holds OtkRect's
24   Bool xinerama_active;
25 #endif
26 } OtkScreenInfo;
27
28 //! Creates an OtkScreenInfo for a screen
29 /*!
30   @param num The number of the screen on the display for which to fill the
31              struct with information. Must be a value >= 0.
32 */
33 PyObject *OtkScreenInfo_New(int num);
34
35 #endif // __screeninfo_h