openbox/otk_c/screeninfo.h

34 lines
740 B
C
Raw Normal View History

2002-12-20 23:19:07 +00:00
// -*- mode: C; indent-tabs-mode: nil; -*-
#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-20 23:19:07 +00:00
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