summaryrefslogtreecommitdiff
path: root/otk_c/display.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-21 12:04:15 +0000
committerDana Jansens <danakj@orodu.net>2002-12-21 12:04:15 +0000
commit187e7db9c039d7369766aeae7dfdf87f191ac446 (patch)
tree6b46655512d45480aef7cc778e05c82c45aad91d /otk_c/display.h
parent59b65db2cac9f359dfcff3ab988e70eab053bdb4 (diff)
a color cache to be proud of!
Diffstat (limited to 'otk_c/display.h')
-rw-r--r--otk_c/display.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/otk_c/display.h b/otk_c/display.h
index a59d8482..a36cd853 100644
--- a/otk_c/display.h
+++ b/otk_c/display.h
@@ -6,10 +6,9 @@
#include <Python.h>
struct OtkScreenInfo;
-struct OtkGCCache;
struct OtkDisplay;
-struct OtkDisplay *OBDisplay; // the global display XXX: move this to app.h and ob.h?
+extern struct OtkDisplay *OBDisplay; // the global display XXX: move this to app.h and ob.h?
typedef struct OtkDisplay {
PyObject_HEAD
@@ -35,25 +34,15 @@ typedef struct OtkDisplay {
//! A list of information for all screens on the display
PyObject *screenInfoList; // PyListObject
-
- //! A cache for re-using GCs, used by the drawing objects
- /*!
- @see BPen
- @see BFont
- @see BImage
- @see BImageControl
- @see BTexture
- */
- struct OtkGCCache *gccache;
} OtkDisplay;
-//! Creates a struct, opens the X display
+//! Opens the X display, and sets the global OBDisplay variable
/*!
@see OBDisplay::display
@param name The name of the X display to open. If it is null, the DISPLAY
environment variable is used instead.
*/
-PyObject *OtkDisplay_New(char *name);
+void OtkDisplay_Initialize(char *name);
//! Grabs the display
void OtkDisplay_Grab(OtkDisplay *self);