]> Dogcows Code - chaz/openbox/blob - otk_c/screeninfo.h
3a330f57df7c7c4e38b49ac7e81881eb8166f156
[chaz/openbox] / 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
This page took 0.032205 seconds and 4 git commands to generate.