1 // -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
11 extern struct OtkDisplay
*OBDisplay
; // the global display XXX: move this to app.h and ob.h?
13 extern PyTypeObject OtkDisplay_Type
;
15 typedef struct OtkDisplay
{
21 //! Does the display have the Shape extention?
23 //! Base for events for the Shape extention
24 int shape_event_basep
;
26 //! Does the display have the Xinerama extention?
28 //! Base for events for the Xinerama extention
29 int xinerama_event_basep
;
31 //! A list of all possible combinations of keyboard lock masks
32 unsigned int mask_list
[8];
34 //! The number of requested grabs on the display
37 //! A list of information for all screens on the display
38 PyListObject
*screenInfoList
;
41 //! Opens the X display, and sets the global OBDisplay variable
43 @see OBDisplay::display
44 @param name The name of the X display to open. If it is null, the DISPLAY
45 environment variable is used instead.
47 void OtkDisplay_Initialize(char *name
);
50 void OtkDisplay_Grab(OtkDisplay
*self
);
52 //! Ungrabs the display
53 void OtkDisplay_Ungrab(OtkDisplay
*self
);
55 //! Get the screen info for a specific screen
56 struct OtkScreenInfo
*OtkDisplay_ScreenInfo(OtkDisplay
*self
, int num
);