summaryrefslogtreecommitdiff
path: root/otk_c/display.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-20 23:19:07 +0000
committerDana Jansens <danakj@orodu.net>2002-12-20 23:19:07 +0000
commite5c5b4bf700f9bf00dd88bd4b6a471ac1ccefaff (patch)
tree122c249b6bd50a6695f829e1b559cc8e648f4802 /otk_c/display.h
parent7f111a94d0a0d8a45d318b8a19d0da1097c76d24 (diff)
add screeninfo
Diffstat (limited to 'otk_c/display.h')
-rw-r--r--otk_c/display.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/otk_c/display.h b/otk_c/display.h
index fd9b706f..87574b76 100644
--- a/otk_c/display.h
+++ b/otk_c/display.h
@@ -5,10 +5,13 @@
#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
@@ -41,7 +44,7 @@ typedef struct {
@see BImageControl
@see BTexture
*/
- OtkGCCache *gccache;
+ struct OtkGCCache *gccache;
} OtkDisplay;
//! Creates a struct, opens the X display