#include <X11/Xlib.h>
#include <Python.h>
-typedef OtkScreenInfo;
-typedef OtkGCCache;
+struct OtkScreenInfo;
+struct OtkGCCache;
+struct OtkDisplay;
-typedef struct {
+struct OtkDisplay *OBDisplay; // the global display XXX: move this to app.h and ob.h?
+
+typedef struct OtkDisplay {
PyObject_HEAD
//! The X display
@see BImageControl
@see BTexture
*/
- OtkGCCache *gccache;
+ struct OtkGCCache *gccache;
} OtkDisplay;
//! Creates a struct, opens the X display
//! Ungrabs the display
void OtkDisplay_Ungrab(OtkDisplay *self);
+//! Get the screen info for a specific screen
+struct OtkScreenInfo *OtkDisplay_ScreenInfo(OtkDisplay *self, int num);
+
#endif // __display_h