1 // -*- mode: C; indent-tabs-mode: nil; -*-
11 extern struct OtkDisplay *OBDisplay; // the global display XXX: move this to app.h and ob.h?
13 typedef struct OtkDisplay {
19 //! Does the display have the Shape extention?
21 //! Base for events for the Shape extention
22 int shape_event_basep;
24 //! Does the display have the Xinerama extention?
26 //! Base for events for the Xinerama extention
27 int xinerama_event_basep;
29 //! A list of all possible combinations of keyboard lock masks
30 unsigned int mask_list[8];
32 //! The number of requested grabs on the display
35 //! A list of information for all screens on the display
36 PyObject *screenInfoList; // PyListObject
39 //! Opens the X display, and sets the global OBDisplay variable
41 @see OBDisplay::display
42 @param name The name of the X display to open. If it is null, the DISPLAY
43 environment variable is used instead.
45 void OtkDisplay_Initialize(char *name);
48 void OtkDisplay_Grab(OtkDisplay *self);
50 //! Ungrabs the display
51 void OtkDisplay_Ungrab(OtkDisplay *self);
53 //! Get the screen info for a specific screen
54 struct OtkScreenInfo *OtkDisplay_ScreenInfo(OtkDisplay *self, int num);