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