2002-12-21 14:53:36 +00:00
|
|
|
// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
|
2002-12-20 23:19:07 +00:00
|
|
|
#ifndef __screeninfo_h
|
|
|
|
#define __screeninfo_h
|
|
|
|
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <Python.h>
|
|
|
|
|
2002-12-21 12:27:05 +00:00
|
|
|
extern PyTypeObject OtkScreenInfo_Type;
|
|
|
|
|
2002-12-21 12:39:49 +00:00
|
|
|
struct OtkRect;
|
|
|
|
|
2002-12-20 23:19:07 +00:00
|
|
|
typedef struct OtkScreenInfo {
|
2002-12-21 19:54:15 +00:00
|
|
|
PyObject_HEAD
|
2002-12-20 23:19:07 +00:00
|
|
|
int screen;
|
|
|
|
Window root_window;
|
|
|
|
|
|
|
|
int depth;
|
|
|
|
Visual *visual;
|
|
|
|
Colormap colormap;
|
|
|
|
|
2002-12-21 12:39:49 +00:00
|
|
|
PyStringObject *display_string;
|
|
|
|
struct OtkRect *rect; // OtkRect
|
2002-12-20 23:19:07 +00:00
|
|
|
#ifdef XINERAMA
|
2002-12-21 14:53:36 +00:00
|
|
|
PyListObject *xinerama_areas; // holds OtkRect's
|
2002-12-20 23:19:07 +00:00
|
|
|
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
|