/usr/share/pyshared/xcb/xtest.py is in python-xpyb 1.3.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 | #
# This file generated automatically from xtest.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 = 2
MINOR_VERSION = 1
key = xcb.ExtensionKey('XTEST')
class GetVersionCookie(xcb.Cookie):
pass
class GetVersionReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.major_version, self.minor_version,) = unpack_from('xB2x4xH', parent, offset)
class Cursor:
_None = 0
Current = 1
class CompareCursorCookie(xcb.Cookie):
pass
class CompareCursorReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.same,) = unpack_from('xB2x4x', parent, offset)
class xtestExtension(xcb.Extension):
def GetVersion(self, major_version, minor_version):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xBxH', major_version, minor_version))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, True),
GetVersionCookie(),
GetVersionReply)
def GetVersionUnchecked(self, major_version, minor_version):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xBxH', major_version, minor_version))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, False),
GetVersionCookie(),
GetVersionReply)
def CompareCursor(self, window, cursor):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', window, cursor))
return self.send_request(xcb.Request(buf.getvalue(), 1, False, True),
CompareCursorCookie(),
CompareCursorReply)
def CompareCursorUnchecked(self, window, cursor):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', window, cursor))
return self.send_request(xcb.Request(buf.getvalue(), 1, False, False),
CompareCursorCookie(),
CompareCursorReply)
def FakeInputChecked(self, type, detail, time, root, rootX, rootY, deviceid):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xBB2xII8xhh7xB', type, detail, time, root, rootX, rootY, deviceid))
return self.send_request(xcb.Request(buf.getvalue(), 2, True, True),
xcb.VoidCookie())
def FakeInput(self, type, detail, time, root, rootX, rootY, deviceid):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xBB2xII8xhh7xB', type, detail, time, root, rootX, rootY, deviceid))
return self.send_request(xcb.Request(buf.getvalue(), 2, True, False),
xcb.VoidCookie())
def GrabControlChecked(self, impervious):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xB3x', impervious))
return self.send_request(xcb.Request(buf.getvalue(), 3, True, True),
xcb.VoidCookie())
def GrabControl(self, impervious):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xB3x', impervious))
return self.send_request(xcb.Request(buf.getvalue(), 3, True, False),
xcb.VoidCookie())
_events = {
}
_errors = {
}
xcb._add_ext(key, xtestExtension, _events, _errors)
|