/usr/lib/python2.7/dist-packages/xcb/xinerama.py is in python-xpyb 1.3.1-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | #
# This file generated automatically from xinerama.xml by py_client.py.
# Edit at your peril.
#
import xcb
import cStringIO
from struct import pack, unpack_from
from array import array
import xproto
MAJOR_VERSION = 1
MINOR_VERSION = 1
key = xcb.ExtensionKey('XINERAMA')
class ScreenInfo(xcb.Struct):
def __init__(self, parent, offset, size):
xcb.Struct.__init__(self, parent, offset, size)
(self.x_org, self.y_org, self.width, self.height,) = unpack_from('hhHH', parent, offset)
class QueryVersionCookie(xcb.Cookie):
pass
class QueryVersionReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.major, self.minor,) = unpack_from('xx2x4xHH', parent, offset)
class GetStateCookie(xcb.Cookie):
pass
class GetStateReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.state, self.window,) = unpack_from('xB2x4xI', parent, offset)
class GetScreenCountCookie(xcb.Cookie):
pass
class GetScreenCountReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.screen_count, self.window,) = unpack_from('xB2x4xI', parent, offset)
class GetScreenSizeCookie(xcb.Cookie):
pass
class GetScreenSizeReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.width, self.height, self.window, self.screen,) = unpack_from('xx2x4xIIII', parent, offset)
class IsActiveCookie(xcb.Cookie):
pass
class IsActiveReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.state,) = unpack_from('xx2x4xI', parent, offset)
class QueryScreensCookie(xcb.Cookie):
pass
class QueryScreensReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.number,) = unpack_from('xx2x4xI20x', parent, offset)
offset += 32
self.screen_info = xcb.List(parent, offset, self.number, ScreenInfo, 8)
class xineramaExtension(xcb.Extension):
def QueryVersion(self, major, minor):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xBB', major, minor))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, True),
QueryVersionCookie(),
QueryVersionReply)
def QueryVersionUnchecked(self, major, minor):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xBB', major, minor))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, False),
QueryVersionCookie(),
QueryVersionReply)
def GetState(self, window):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', window))
return self.send_request(xcb.Request(buf.getvalue(), 1, False, True),
GetStateCookie(),
GetStateReply)
def GetStateUnchecked(self, window):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', window))
return self.send_request(xcb.Request(buf.getvalue(), 1, False, False),
GetStateCookie(),
GetStateReply)
def GetScreenCount(self, window):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', window))
return self.send_request(xcb.Request(buf.getvalue(), 2, False, True),
GetScreenCountCookie(),
GetScreenCountReply)
def GetScreenCountUnchecked(self, window):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', window))
return self.send_request(xcb.Request(buf.getvalue(), 2, False, False),
GetScreenCountCookie(),
GetScreenCountReply)
def GetScreenSize(self, window, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', window, screen))
return self.send_request(xcb.Request(buf.getvalue(), 3, False, True),
GetScreenSizeCookie(),
GetScreenSizeReply)
def GetScreenSizeUnchecked(self, window, screen):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', window, screen))
return self.send_request(xcb.Request(buf.getvalue(), 3, False, False),
GetScreenSizeCookie(),
GetScreenSizeReply)
def IsActive(self, ):
buf = cStringIO.StringIO()
buf.write(pack('=xx2x', ))
return self.send_request(xcb.Request(buf.getvalue(), 4, False, True),
IsActiveCookie(),
IsActiveReply)
def IsActiveUnchecked(self, ):
buf = cStringIO.StringIO()
buf.write(pack('=xx2x', ))
return self.send_request(xcb.Request(buf.getvalue(), 4, False, False),
IsActiveCookie(),
IsActiveReply)
def QueryScreens(self, ):
buf = cStringIO.StringIO()
buf.write(pack('=xx2x', ))
return self.send_request(xcb.Request(buf.getvalue(), 5, False, True),
QueryScreensCookie(),
QueryScreensReply)
def QueryScreensUnchecked(self, ):
buf = cStringIO.StringIO()
buf.write(pack('=xx2x', ))
return self.send_request(xcb.Request(buf.getvalue(), 5, False, False),
QueryScreensCookie(),
QueryScreensReply)
_events = {
}
_errors = {
}
xcb._add_ext(key, xineramaExtension, _events, _errors)
|