1 // -*- mode: C; indent-tabs-mode: nil; -*-
12 struct OtkDisplay *OBDisplay; // the global display XXX: move this to app.h and ob.h?
14 typedef struct OtkDisplay {
20 //! Does the display have the Shape extention?
22 //! Base for events for the Shape extention
23 int shape_event_basep;
25 //! Does the display have the Xinerama extention?
27 //! Base for events for the Xinerama extention
28 int xinerama_event_basep;
30 //! A list of all possible combinations of keyboard lock masks
31 unsigned int mask_list[8];
33 //! The number of requested grabs on the display
36 //! A list of information for all screens on the display
37 PyObject *screenInfoList; // PyListObject
39 //! A cache for re-using GCs, used by the drawing objects
47 struct OtkGCCache *gccache;
50 //! Creates a struct, opens the X display
52 @see OBDisplay::display
53 @param name The name of the X display to open. If it is null, the DISPLAY
54 environment variable is used instead.
56 PyObject *OtkDisplay_New(char *name);
59 void OtkDisplay_Grab(OtkDisplay *self);
61 //! Ungrabs the display
62 void OtkDisplay_Ungrab(OtkDisplay *self);