예제 #1
0
파일: xfixes.py 프로젝트: samurai-x/ooxcb
 def read(self, stream):
     self._address = stream.address
     root = stream.tell()
     stream.seek(8, 1)
     self.extents = RECTANGLE.create_from_stream(self.conn, stream)
     stream.seek(16, 1)
     stream.seek(ooxcb.type_pad(8, stream.tell() - root), 1)
     self.rectangles = ooxcb.List(self.conn, stream, self.length, RECTANGLE, 8)
예제 #2
0
파일: damage.py 프로젝트: samurai-x/ooxcb
 def read(self, stream):
     self._address = stream.address
     root = stream.tell()
     _unpacked = unpack_from_stream("=BBxxIII", stream)
     self.response_type = _unpacked[0]
     self.level = _unpacked[1]
     self.drawable = self.conn.get_from_cache_fallback(_unpacked[2], DrawableMixin)
     self.damage = self.conn.get_from_cache_fallback(_unpacked[3], Damage)
     self.timestamp = _unpacked[4]
     self.area = Rectangle.create_from_stream(self.conn, stream)
     stream.seek(ooxcb.type_pad(8, stream.tell() - root), 1)
     self.geometry = Rectangle.create_from_stream(self.conn, stream)
     self.event_target = self.drawable
예제 #3
0
파일: xfixes.py 프로젝트: samurai-x/ooxcb
 def read(self, stream):
     self._address = stream.address
     root = stream.tell()
     _unpacked = unpack_from_stream("=xxxxxxxxhhHHHHIIHxx", stream)
     self.x = _unpacked[0]
     self.y = _unpacked[1]
     self.width = _unpacked[2]
     self.height = _unpacked[3]
     self.xhot = _unpacked[4]
     self.yhot = _unpacked[5]
     self.cursor_serial = _unpacked[6]
     self.cursor_atom = self.conn.atoms.get_by_id(_unpacked[7])
     self.nbytes = _unpacked[8]
     self.name = ooxcb.List(self.conn, stream, self.nbytes, 'B', 1).to_string()
     stream.seek(ooxcb.type_pad(4, stream.tell() - root), 1)
     self.cursor_image = ooxcb.List(self.conn, stream, (self.width * self.height), 'I', 4)
예제 #4
0
파일: record.py 프로젝트: atoun/melange
 def read(self, stream):
     self._address = stream.address
     root = stream.tell()
     self.core_requests = Range8.create_from_stream(self.conn, stream)
     stream.seek(ooxcb.type_pad(2, stream.tell() - root), 1)
     self.core_replies = Range8.create_from_stream(self.conn, stream)
     stream.seek(ooxcb.type_pad(6, stream.tell() - root), 1)
     self.ext_requests = ExtRange.create_from_stream(self.conn, stream)
     stream.seek(ooxcb.type_pad(6, stream.tell() - root), 1)
     self.ext_replies = ExtRange.create_from_stream(self.conn, stream)
     stream.seek(ooxcb.type_pad(2, stream.tell() - root), 1)
     self.delivered_events = Range8.create_from_stream(self.conn, stream)
     stream.seek(ooxcb.type_pad(2, stream.tell() - root), 1)
     self.device_events = Range8.create_from_stream(self.conn, stream)
     stream.seek(ooxcb.type_pad(2, stream.tell() - root), 1)
     self.errors = Range8.create_from_stream(self.conn, stream)
     stream.seek(ooxcb.type_pad(4, stream.tell() - root), 1)
     _unpacked = unpack_from_stream("=BB", stream)
     self.client_started = _unpacked[0]
     self.client_died = _unpacked[1]
예제 #5
0
파일: record.py 프로젝트: atoun/melange
 def read(self, stream):
     self._address = stream.address
     root = stream.tell()
     self.major = Range8.create_from_stream(self.conn, stream)
     stream.seek(ooxcb.type_pad(4, stream.tell() - root), 1)
     self.minor = Range16.create_from_stream(self.conn, stream)