-// -*- mode: C; indent-tabs-mode: nil; -*-
+// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
#ifndef __screeninfo_h
#define __screeninfo_h
#include <X11/Xlib.h>
#include <Python.h>
+extern PyTypeObject OtkScreenInfo_Type;
+
+struct OtkRect;
+
typedef struct OtkScreenInfo {
int screen;
Window root_window;
Visual *visual;
Colormap colormap;
- PyObject *display_string; // PyStringObject
- PyObject *rect; // OtkRect
+ PyStringObject *display_string;
+ struct OtkRect *rect; // OtkRect
#ifdef XINERAMA
- PyObject *xinerama_areas; // PyListObject[OtkRect]
+ PyListObject *xinerama_areas; // holds OtkRect's
Bool xinerama_active;
#endif
} OtkScreenInfo;