/usr/share/pyshared/xcb/composite.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 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 | #
# This file generated automatically from composite.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
import render
import shape
import xfixes
MAJOR_VERSION = 0
MINOR_VERSION = 3
key = xcb.ExtensionKey('Composite')
class Redirect:
Automatic = 0
Manual = 1
class QueryVersionCookie(xcb.Cookie):
pass
class QueryVersionReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.major_version, self.minor_version,) = unpack_from('xx2x4xII16x', parent, offset)
class GetOverlayWindowCookie(xcb.Cookie):
pass
class GetOverlayWindowReply(xcb.Reply):
def __init__(self, parent, offset=0):
xcb.Reply.__init__(self, parent, offset)
(self.overlay_win,) = unpack_from('xx2x4xI20x', parent, offset)
class compositeExtension(xcb.Extension):
def QueryVersion(self, client_major_version, client_minor_version):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', client_major_version, client_minor_version))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, True),
QueryVersionCookie(),
QueryVersionReply)
def QueryVersionUnchecked(self, client_major_version, client_minor_version):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', client_major_version, client_minor_version))
return self.send_request(xcb.Request(buf.getvalue(), 0, False, False),
QueryVersionCookie(),
QueryVersionReply)
def RedirectWindowChecked(self, window, update):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xIB3x', window, update))
return self.send_request(xcb.Request(buf.getvalue(), 1, True, True),
xcb.VoidCookie())
def RedirectWindow(self, window, update):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xIB3x', window, update))
return self.send_request(xcb.Request(buf.getvalue(), 1, True, False),
xcb.VoidCookie())
def RedirectSubwindowsChecked(self, window, update):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xIB3x', window, update))
return self.send_request(xcb.Request(buf.getvalue(), 2, True, True),
xcb.VoidCookie())
def RedirectSubwindows(self, window, update):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xIB3x', window, update))
return self.send_request(xcb.Request(buf.getvalue(), 2, True, False),
xcb.VoidCookie())
def UnredirectWindowChecked(self, window, update):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xIB3x', window, update))
return self.send_request(xcb.Request(buf.getvalue(), 3, True, True),
xcb.VoidCookie())
def UnredirectWindow(self, window, update):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xIB3x', window, update))
return self.send_request(xcb.Request(buf.getvalue(), 3, True, False),
xcb.VoidCookie())
def UnredirectSubwindowsChecked(self, window, update):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xIB3x', window, update))
return self.send_request(xcb.Request(buf.getvalue(), 4, True, True),
xcb.VoidCookie())
def UnredirectSubwindows(self, window, update):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xIB3x', window, update))
return self.send_request(xcb.Request(buf.getvalue(), 4, True, False),
xcb.VoidCookie())
def CreateRegionFromBorderClipChecked(self, region, window):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', region, window))
return self.send_request(xcb.Request(buf.getvalue(), 5, True, True),
xcb.VoidCookie())
def CreateRegionFromBorderClip(self, region, window):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', region, window))
return self.send_request(xcb.Request(buf.getvalue(), 5, True, False),
xcb.VoidCookie())
def NameWindowPixmapChecked(self, window, pixmap):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', window, pixmap))
return self.send_request(xcb.Request(buf.getvalue(), 6, True, True),
xcb.VoidCookie())
def NameWindowPixmap(self, window, pixmap):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xII', window, pixmap))
return self.send_request(xcb.Request(buf.getvalue(), 6, True, False),
xcb.VoidCookie())
def GetOverlayWindow(self, window):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', window))
return self.send_request(xcb.Request(buf.getvalue(), 7, False, True),
GetOverlayWindowCookie(),
GetOverlayWindowReply)
def GetOverlayWindowUnchecked(self, window):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', window))
return self.send_request(xcb.Request(buf.getvalue(), 7, False, False),
GetOverlayWindowCookie(),
GetOverlayWindowReply)
def ReleaseOverlayWindowChecked(self, window):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', window))
return self.send_request(xcb.Request(buf.getvalue(), 8, True, True),
xcb.VoidCookie())
def ReleaseOverlayWindow(self, window):
buf = cStringIO.StringIO()
buf.write(pack('=xx2xI', window))
return self.send_request(xcb.Request(buf.getvalue(), 8, True, False),
xcb.VoidCookie())
_events = {
}
_errors = {
}
xcb._add_ext(key, compositeExtension, _events, _errors)
|