]> Dogcows Code - chaz/openbox/blob - otk_c/screeninfo.h
add screeninfo
[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 typedef struct OtkScreenInfo {
9 int screen;
10 Window root_window;
11
12 int depth;
13 Visual *visual;
14 Colormap colormap;
15
16 PyObject *display_string; // PyStringObject
17 PyObject *rect; // OtkRect
18 #ifdef XINERAMA
19 PyObject *xinerama_areas; // PyListObject[OtkRect]
20 Bool xinerama_active;
21 #endif
22 } OtkScreenInfo;
23
24 //! Creates an OtkScreenInfo for a screen
25 /*!
26 @param num The number of the screen on the display for which to fill the
27 struct with information. Must be a value >= 0.
28 */
29 PyObject *OtkScreenInfo_New(int num);
30
31 #endif // __screeninfo_h
This page took 0.041637 seconds and 5 git commands to generate.