openbox/otk_c/screeninfo.h

37 lines
784 B
C
Raw Normal View History

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;
struct OtkRect;
2002-12-20 23:19:07 +00:00
typedef struct OtkScreenInfo {
PyObject_HEAD
2002-12-20 23:19:07 +00:00
int screen;
Window root_window;
int depth;
Visual *visual;
Colormap colormap;
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