예제 #1
0
파일: xv.py 프로젝트: RockyLiys/app_tools
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     (
         self.id,
         self.type,
         self.byte_order,
     ) = unpack_from('IBB2x', parent, offset)
     offset += 8
     self.guid = xcb.List(parent, offset, 16, 'B', 1)
     offset += len(self.guid.buf())
     (
         self.bpp,
         self.num_planes,
         self.depth,
         self.red_mask,
         self.green_mask,
         self.blue_mask,
         self.format,
         self.y_sample_bits,
         self.u_sample_bits,
         self.v_sample_bits,
         self.vhorz_y_period,
         self.vhorz_u_period,
         self.vhorz_v_period,
         self.vvert_y_period,
         self.vvert_u_period,
         self.vvert_v_period,
     ) = unpack_from('BB2xB3xIIIB3xIIIIIIIII', parent, offset)
     offset += 60
     offset += xcb.type_pad(1, offset)
     self.vcomp_order = xcb.List(parent, offset, 32, 'B', 1)
     offset += len(self.vcomp_order.buf())
     offset += xcb.type_pad(4, offset)
     (self.vscanline_order, ) = unpack_from('B11x', parent, offset)
예제 #2
0
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     self.p1 = POINTFIX(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(8, offset)
     self.p2 = POINTFIX(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(8, offset)
     self.p3 = POINTFIX(parent, offset, 8)
예제 #3
0
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     self.p1 = POINTFIX(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(8, offset)
     self.p2 = POINTFIX(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(8, offset)
     self.p3 = POINTFIX(parent, offset, 8)
예제 #4
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     offset += 8
     self.trigger = TRIGGER(parent, offset, 20)
     offset += 20
     offset += xcb.type_pad(8, offset)
     self.delta = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(4, offset)
     (self.events, self.state,) = unpack_from('BB2x', parent, offset)
예제 #5
0
파일: sync.py 프로젝트: hhismans/fdf
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     offset += 8
     self.trigger = TRIGGER(parent, offset, 20)
     offset += 20
     offset += xcb.type_pad(8, offset)
     self.delta = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(4, offset)
     (self.events, self.state,) = unpack_from('BB2x', parent, offset)
예제 #6
0
파일: render.py 프로젝트: aosm/X11libs
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     count = 0
     self.p1 = POINTFIX(self, count, 8)
     count += 8
     count += xcb.type_pad(8, count)
     self.p2 = POINTFIX(self, count, 8)
     count += 8
     count += xcb.type_pad(8, count)
     self.p3 = POINTFIX(self, count, 8)
예제 #7
0
파일: sync.py 프로젝트: samurai-x/samurai-x
 def __init__(self, parent):
     xcb.Reply.__init__(self, parent)
     count = 0
     count += 8
     self.trigger = TRIGGER(self, count, 20)
     count += 20
     count += xcb.type_pad(8, count)
     self.delta = INT64(self, count, 8)
     count += 8
     count += xcb.type_pad(4, count)
     (self.events, self.state,) = unpack_ex('BB', self, count)
예제 #8
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (self.num_formats, self.num_screens, self.num_depths, self.num_visuals, self.num_subpixel,) = unpack_from('xx2x4xIIIII4x', parent, offset)
     offset += 32
     self.formats = xcb.List(parent, offset, self.num_formats, PICTFORMINFO, 28)
     offset += len(self.formats.buf())
     offset += xcb.type_pad(4, offset)
     self.screens = xcb.List(parent, offset, self.num_screens, PICTSCREEN, -1)
     offset += len(self.screens.buf())
     offset += xcb.type_pad(4, offset)
     self.subpixels = xcb.List(parent, offset, self.num_subpixel, 'I', 4)
예제 #9
0
파일: sync.py 프로젝트: hhismans/fdf
 def __init__(self, parent, offset=0):
     xcb.Event.__init__(self, parent, offset)
     (self.kind, self.alarm,) = unpack_from('xB2xI', parent, offset)
     offset += 8
     self.counter_value = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(8, offset)
     self.alarm_value = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(4, offset)
     (self.timestamp, self.state,) = unpack_from('IB3x', parent, offset)
예제 #10
0
 def __init__(self, parent, offset=0):
     xcb.Event.__init__(self, parent, offset)
     (self.kind, self.counter,) = unpack_from('xB2xI', parent, offset)
     offset += 8
     self.wait_value = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(8, offset)
     self.counter_value = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(4, offset)
     (self.timestamp, self.count, self.destroyed,) = unpack_from('IHBx', parent, offset)
예제 #11
0
 def __init__(self, parent, offset=0):
     xcb.Event.__init__(self, parent, offset)
     (self.kind, self.alarm,) = unpack_from('xB2xI', parent, offset)
     offset += 8
     self.counter_value = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(8, offset)
     self.alarm_value = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(4, offset)
     (self.timestamp, self.state,) = unpack_from('IB3x', parent, offset)
예제 #12
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (self.size,) = unpack_from('xx2x4xH22x', parent, offset)
     offset += 32
     self.red = xcb.List(parent, offset, self.size, 'H', 2)
     offset += len(self.red.buf())
     offset += xcb.type_pad(2, offset)
     self.green = xcb.List(parent, offset, self.size, 'H', 2)
     offset += len(self.green.buf())
     offset += xcb.type_pad(2, offset)
     self.blue = xcb.List(parent, offset, self.size, 'H', 2)
예제 #13
0
파일: sync.py 프로젝트: hhismans/fdf
 def __init__(self, parent, offset=0):
     xcb.Event.__init__(self, parent, offset)
     (self.kind, self.counter,) = unpack_from('xB2xI', parent, offset)
     offset += 8
     self.wait_value = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(8, offset)
     self.counter_value = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(4, offset)
     (self.timestamp, self.count, self.destroyed,) = unpack_from('IHBx', parent, offset)
예제 #14
0
 def __init__(self, parent):
     xcb.Reply.__init__(self, parent)
     count = 0
     (self.status, self.size,) = unpack_ex('xB2x4xH22x', self, count)
     count += 32
     self.red = xcb.List(self, count, self.size, 'H', 2)
     count += len(self.red.buf())
     count += xcb.type_pad(2, count)
     self.green = xcb.List(self, count, self.size, 'H', 2)
     count += len(self.green.buf())
     count += xcb.type_pad(2, count)
     self.blue = xcb.List(self, count, self.size, 'H', 2)
예제 #15
0
파일: sync.py 프로젝트: samurai-x/samurai-x
 def __init__(self, parent):
     xcb.Event.__init__(self, parent)
     count = 0
     (self.kind, self.counter,) = unpack_ex('xB2xI', self, count)
     count += 8
     self.wait_value = INT64(self, count, 8)
     count += 8
     count += xcb.type_pad(8, count)
     self.counter_value = INT64(self, count, 8)
     count += 8
     count += xcb.type_pad(4, count)
     (self.timestamp, self.count, self.destroyed,) = unpack_ex('IHB', self, count)
예제 #16
0
파일: xinput.py 프로젝트: aosm/X11libs
 def __init__(self, parent):
     xcb.Event.__init__(self, parent)
     count = 0
     (self.device_id, self.time, self.num_keys, self.num_buttons, self.num_valuators, self.classes_reported,) = unpack_from('xB2xIBBBB', self, count)
     count += 12
     self.buttons = xcb.List(self, count, 4, 'B', 1)
     count += len(self.buttons.buf())
     count += xcb.type_pad(1, count)
     self.keys = xcb.List(self, count, 4, 'B', 1)
     count += len(self.keys.buf())
     count += xcb.type_pad(4, count)
     self.valuators = xcb.List(self, count, 3, 'I', 4)
예제 #17
0
 def __init__(self, parent):
     xcb.Reply.__init__(self, parent)
     count = 0
     (self.num_formats, self.num_screens, self.num_depths, self.num_visuals, self.num_subpixel,) = unpack_ex('xx2x4xIIIII4x', self, count)
     count += 32
     self.formats = xcb.List(self, count, self.num_formats, PICTFORMINFO, 28)
     count += len(self.formats.buf())
     count += xcb.type_pad(4, count)
     self.screens = xcb.List(self, count, self.num_screens, PICTSCREEN, -1)
     count += len(self.screens.buf())
     count += xcb.type_pad(4, count)
     self.subpixels = xcb.List(self, count, self.num_subpixel, 'I', 4)
예제 #18
0
파일: sync.py 프로젝트: samurai-x/samurai-x
 def __init__(self, parent):
     xcb.Event.__init__(self, parent)
     count = 0
     (self.kind, self.alarm,) = unpack_ex('xB2xI', self, count)
     count += 8
     self.counter_value = INT64(self, count, 8)
     count += 8
     count += xcb.type_pad(8, count)
     self.alarm_value = INT64(self, count, 8)
     count += 8
     count += xcb.type_pad(4, count)
     (self.timestamp,) = unpack_ex('I', self, count)
예제 #19
0
파일: xv.py 프로젝트: hhismans/fdf
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     (self.id, self.type, self.byte_order,) = unpack_from('IBB2x', parent, offset)
     offset += 8
     self.guid = xcb.List(parent, offset, 16, 'B', 1)
     offset += len(self.guid.buf())
     (self.bpp, self.num_planes, self.depth, self.red_mask, self.green_mask, self.blue_mask, self.format, self.y_sample_bits, self.u_sample_bits, self.v_sample_bits, self.vhorz_y_period, self.vhorz_u_period, self.vhorz_v_period, self.vvert_y_period, self.vvert_u_period, self.vvert_v_period,) = unpack_from('BB2xB3xIIIB3xIIIIIIIII', parent, offset)
     offset += 60
     offset += xcb.type_pad(1, offset)
     self.vcomp_order = xcb.List(parent, offset, 32, 'B', 1)
     offset += len(self.vcomp_order.buf())
     offset += xcb.type_pad(4, offset)
     (self.vscanline_order,) = unpack_from('B11x', parent, offset)
예제 #20
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (self.timestamp, self.config_timestamp, self.num_crtcs, self.num_outputs, self.num_modes, self.names_len,) = unpack_from('xx2x4xIIHHHH8x', parent, offset)
     offset += 32
     self.crtcs = xcb.List(parent, offset, self.num_crtcs, 'I', 4)
     offset += len(self.crtcs.buf())
     offset += xcb.type_pad(4, offset)
     self.outputs = xcb.List(parent, offset, self.num_outputs, 'I', 4)
     offset += len(self.outputs.buf())
     offset += xcb.type_pad(32, offset)
     self.modes = xcb.List(parent, offset, self.num_modes, ModeInfo, 32)
     offset += len(self.modes.buf())
     offset += xcb.type_pad(1, offset)
     self.names = xcb.List(parent, offset, self.names_len, 'B', 1)
예제 #21
0
파일: xv.py 프로젝트: samurai-x/samurai-x
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.id, self.width, self.height, self.data_size, self.num_planes) = unpack_ex("IHHII", self, count)
     count += 16
     self.pitches = xcb.List(self, count, self.num_planes, "I", 4)
     count += len(self.pitches.buf())
     count += xcb.type_pad(4, count)
     self.offsets = xcb.List(self, count, self.num_planes, "I", 4)
     count += len(self.offsets.buf())
     count += xcb.type_pad(1, count)
     self.data = xcb.List(self, count, self.data_size, "B", 1)
     count += len(self.data.buf())
     xcb._resize_obj(self, count)
예제 #22
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (self.status, self.timestamp, self.crtc, self.mm_width, self.mm_height, self.connection, self.subpixel_order, self.num_crtcs, self.num_modes, self.num_preferred, self.num_clones, self.name_len,) = unpack_from('xB2x4xIIIIBBHHHHH', parent, offset)
     offset += 36
     self.crtcs = xcb.List(parent, offset, self.num_crtcs, 'I', 4)
     offset += len(self.crtcs.buf())
     offset += xcb.type_pad(4, offset)
     self.modes = xcb.List(parent, offset, self.num_modes, 'I', 4)
     offset += len(self.modes.buf())
     offset += xcb.type_pad(4, offset)
     self.clones = xcb.List(parent, offset, self.num_clones, 'I', 4)
     offset += len(self.clones.buf())
     offset += xcb.type_pad(1, offset)
     self.name = xcb.List(parent, offset, self.name_len, 'B', 1)
예제 #23
0
파일: xv.py 프로젝트: hhismans/fdf
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (self.id, self.width, self.height, self.data_size, self.num_planes,) = unpack_from('IHHII', parent, offset)
     offset += 16
     self.pitches = xcb.List(parent, offset, self.num_planes, 'I', 4)
     offset += len(self.pitches.buf())
     offset += xcb.type_pad(4, offset)
     self.offsets = xcb.List(parent, offset, self.num_planes, 'I', 4)
     offset += len(self.offsets.buf())
     offset += xcb.type_pad(1, offset)
     self.data = xcb.List(parent, offset, self.data_size, 'B', 1)
     offset += len(self.data.buf())
     xcb._resize_obj(self, offset - base)
예제 #24
0
파일: xinput.py 프로젝트: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.control_id, self.len, self.num_valuators,) = unpack_from('HHI', self, count)
     count += 8
     self.resolution_values = xcb.List(self, count, self.num_valuators, 'I', 4)
     count += len(self.resolution_values.buf())
     count += xcb.type_pad(4, count)
     self.resolution_min = xcb.List(self, count, self.num_valuators, 'I', 4)
     count += len(self.resolution_min.buf())
     count += xcb.type_pad(4, count)
     self.resolution_max = xcb.List(self, count, self.num_valuators, 'I', 4)
     count += len(self.resolution_max.buf())
     xcb._resize_obj(self, count)
예제 #25
0
 def __init__(self, parent):
     xcb.Reply.__init__(self, parent)
     count = 0
     (self.timestamp, self.config_timestamp, self.num_crtcs, self.num_outputs, self.num_modes, self.names_len,) = unpack_ex('xx2x4xIIHHHH8x', self, count)
     count += 32
     self.crtcs = xcb.List(self, count, self.num_crtcs, 'I', 4)
     count += len(self.crtcs.buf())
     count += xcb.type_pad(4, count)
     self.outputs = xcb.List(self, count, self.num_outputs, 'I', 4)
     count += len(self.outputs.buf())
     count += xcb.type_pad(32, count)
     self.modes = xcb.List(self, count, self.num_modes, ModeInfo, 32)
     count += len(self.modes.buf())
     count += xcb.type_pad(1, count)
     self.names = xcb.List(self, count, self.names_len, 'B', 1)
예제 #26
0
파일: render.py 프로젝트: aosm/X11libs
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     count = 0
     self.top = SPANFIX(self, count, 12)
     count += 12
     count += xcb.type_pad(12, count)
     self.bot = SPANFIX(self, count, 12)
예제 #27
0
파일: sync.py 프로젝트: samurai-x/samurai-x
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     count = 0
     self.trigger = TRIGGER(self, count, 20)
     count += 20
     count += xcb.type_pad(8, count)
     self.event_threshold = INT64(self, count, 8)
예제 #28
0
파일: record.py 프로젝트: aosm/X11libs
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     count = 0
     self.major = Range8(self, count, 2)
     count += 2
     count += xcb.type_pad(4, count)
     self.minor = Range16(self, count, 4)
예제 #29
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (self.drawable_table_index, self.drawable_table_stamp, self.drawable_origin_X, self.drawable_origin_Y, self.drawable_size_W, self.drawable_size_H, self.num_clip_rects, self.back_x, self.back_y, self.num_back_clip_rects,) = unpack_from('xx2x4xIIhhhhIhhI', parent, offset)
     offset += 36
     self.clip_rects = xcb.List(parent, offset, self.num_clip_rects, DrmClipRect, 8)
     offset += len(self.clip_rects.buf())
     offset += xcb.type_pad(8, offset)
     self.back_clip_rects = xcb.List(parent, offset, self.num_back_clip_rects, DrmClipRect, 8)
예제 #30
0
 def __init__(self, parent, offset=0):
     xcb.Event.__init__(self, parent, offset)
     (self.level, self.drawable, self.damage, self.timestamp,) = unpack_from('xB2xIII', parent, offset)
     offset += 16
     self.area = RECTANGLE(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(8, offset)
     self.geometry = RECTANGLE(parent, offset, 8)
예제 #31
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (self.x, self.y, self.width, self.height, self.xhot, self.yhot, self.cursor_serial, self.cursor_atom, self.nbytes,) = unpack_from('xx2x4xhhHHHHIIH2x', parent, offset)
     offset += 32
     self.name = xcb.List(parent, offset, self.nbytes, 'b', 1)
     offset += len(self.name.buf())
     offset += xcb.type_pad(4, offset)
     self.cursor_image = xcb.List(parent, offset, (self.width * self.height), 'I', 4)
예제 #32
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (self.status, self.timestamp, self.x, self.y, self.width, self.height, self.mode, self.rotation, self.rotations, self.num_outputs, self.num_possible_outputs,) = unpack_from('xB2x4xIhhHHIHHHH', parent, offset)
     offset += 32
     self.outputs = xcb.List(parent, offset, self.num_outputs, 'I', 4)
     offset += len(self.outputs.buf())
     offset += xcb.type_pad(4, offset)
     self.possible = xcb.List(parent, offset, self.num_possible_outputs, 'I', 4)
예제 #33
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     offset += 8
     self.extents = RECTANGLE(parent, offset, 8)
     offset += 8
     offset += 16
     offset += xcb.type_pad(8, offset)
     self.rectangles = xcb.List(parent, offset, (self.length / 2), RECTANGLE, 8)
예제 #34
0
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     (self.counter, self.wait_type,) = unpack_from('II', parent, offset)
     offset += 8
     self.wait_value = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(4, offset)
     (self.test_type,) = unpack_from('I', parent, offset)
예제 #35
0
파일: sync.py 프로젝트: hhismans/fdf
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     (self.counter, self.wait_type,) = unpack_from('II', parent, offset)
     offset += 8
     self.wait_value = INT64(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(4, offset)
     (self.test_type,) = unpack_from('I', parent, offset)
예제 #36
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (self.status, self.timestamp, self.capabilities, self.num_crtcs, self.num_outputs, self.num_associated_providers, self.name_len,) = unpack_from('xB2x4xIIHHHH8x', parent, offset)
     offset += 32
     self.crtcs = xcb.List(parent, offset, self.num_crtcs, 'I', 4)
     offset += len(self.crtcs.buf())
     offset += xcb.type_pad(4, offset)
     self.outputs = xcb.List(parent, offset, self.num_outputs, 'I', 4)
     offset += len(self.outputs.buf())
     offset += xcb.type_pad(4, offset)
     self.associated_providers = xcb.List(parent, offset, self.num_associated_providers, 'I', 4)
     offset += len(self.associated_providers.buf())
     offset += xcb.type_pad(4, offset)
     self.associated_capability = xcb.List(parent, offset, self.num_associated_providers, 'I', 4)
     offset += len(self.associated_capability.buf())
     offset += xcb.type_pad(1, offset)
     self.name = xcb.List(parent, offset, self.name_len, 'b', 1)
예제 #37
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (
         self.num_formats,
         self.num_screens,
         self.num_depths,
         self.num_visuals,
         self.num_subpixel,
     ) = unpack_from('xx2x4xIIIII4x', parent, offset)
     offset += 32
     self.formats = xcb.List(parent, offset, self.num_formats, PICTFORMINFO,
                             28)
     offset += len(self.formats.buf())
     offset += xcb.type_pad(4, offset)
     self.screens = xcb.List(parent, offset, self.num_screens, PICTSCREEN,
                             -1)
     offset += len(self.screens.buf())
     offset += xcb.type_pad(4, offset)
     self.subpixels = xcb.List(parent, offset, self.num_subpixel, 'I', 4)
예제 #38
0
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     (
         self.top,
         self.bottom,
     ) = unpack_from('ii', parent, offset)
     offset += 8
     self.left = LINEFIX(parent, offset, 16)
     offset += 16
     offset += xcb.type_pad(16, offset)
     self.right = LINEFIX(parent, offset, 16)
예제 #39
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (
         self.num_aliases,
         self.num_filters,
     ) = unpack_from('xx2x4xII16x', parent, offset)
     offset += 32
     self.aliases = xcb.List(parent, offset, self.num_aliases, 'H', 2)
     offset += len(self.aliases.buf())
     offset += xcb.type_pad(4, offset)
     self.filters = xcb.List(parent, offset, self.num_filters, STR, -1)
예제 #40
0
파일: xv.py 프로젝트: RockyLiys/app_tools
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (
         self.id,
         self.width,
         self.height,
         self.data_size,
         self.num_planes,
     ) = unpack_from('IHHII', parent, offset)
     offset += 16
     self.pitches = xcb.List(parent, offset, self.num_planes, 'I', 4)
     offset += len(self.pitches.buf())
     offset += xcb.type_pad(4, offset)
     self.offsets = xcb.List(parent, offset, self.num_planes, 'I', 4)
     offset += len(self.offsets.buf())
     offset += xcb.type_pad(1, offset)
     self.data = xcb.List(parent, offset, self.data_size, 'B', 1)
     offset += len(self.data.buf())
     xcb._resize_obj(self, offset - base)
예제 #41
0
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     self.spec = ClientIdSpec(parent, offset, 8)
     offset += 8
     (self.length,) = unpack_from('I', parent, offset)
     offset += 4
     offset += xcb.type_pad(4, offset)
     self.value = xcb.List(parent, offset, self.length, 'I', 4)
     offset += len(self.value.buf())
     xcb._resize_obj(self, offset - base)
예제 #42
0
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     self.size = ResourceSizeSpec(parent, offset, 20)
     offset += 20
     (self.num_cross_references,) = unpack_from('I', parent, offset)
     offset += 4
     offset += xcb.type_pad(20, offset)
     self.cross_references = xcb.List(parent, offset, self.num_cross_references, ResourceSizeSpec, 20)
     offset += len(self.cross_references.buf())
     xcb._resize_obj(self, offset - base)
예제 #43
0
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     (
         self.id,
         self.type,
         self.depth,
     ) = unpack_from('IBB2x', parent, offset)
     offset += 8
     self.direct = DIRECTFORMAT(parent, offset, 16)
     offset += 16
     offset += xcb.type_pad(4, offset)
     (self.colormap, ) = unpack_from('I', parent, offset)
예제 #44
0
파일: xv.py 프로젝트: RockyLiys/app_tools
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (
         self.num_planes,
         self.data_size,
         self.width,
         self.height,
     ) = unpack_from('xx2x4xIIHH12x', parent, offset)
     offset += 32
     self.pitches = xcb.List(parent, offset, self.num_planes, 'I', 4)
     offset += len(self.pitches.buf())
     offset += xcb.type_pad(4, offset)
     self.offsets = xcb.List(parent, offset, self.num_planes, 'I', 4)
예제 #45
0
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (self.counter,) = unpack_from('I', parent, offset)
     offset += 4
     self.resolution = INT64(parent, offset, 8)
     offset += 8
     (self.name_len,) = unpack_from('H', parent, offset)
     offset += 2
     offset += xcb.type_pad(1, offset)
     self.name = xcb.List(parent, offset, self.name_len, 'b', 1)
     offset += len(self.name.buf())
     xcb._resize_obj(self, offset - base)
예제 #46
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (self.event_mask, ) = unpack_from('xx2x4xI', parent, offset)
     offset += 12
     self.event_list = xcb.List(parent, offset,
                                xcb.popcount(self.event_mask), 'I', 4)
     offset += len(self.event_list.buf())
     (self.all_events_mask, ) = unpack_from('I', parent, offset)
     offset += 4
     offset += xcb.type_pad(4, offset)
     self.all_events_list = xcb.List(parent, offset,
                                     xcb.popcount(self.all_events_mask),
                                     'I', 4)
예제 #47
0
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (self.nameLen, ) = unpack_from('I', parent, offset)
     offset += 4
     self.name = xcb.List(parent, offset, self.nameLen, 'b', 1)
     offset += len(self.name.buf())
     (self.descLen, ) = unpack_from('I', parent, offset)
     offset += 4
     offset += xcb.type_pad(1, offset)
     self.description = xcb.List(parent, offset, self.descLen, 'b', 1)
     offset += len(self.description.buf())
     xcb._resize_obj(self, offset - base)
예제 #48
0
 def __init__(self, parent, offset=0):
     xcb.Event.__init__(self, parent, offset)
     (
         self.level,
         self.drawable,
         self.damage,
         self.timestamp,
     ) = unpack_from('xB2xIII', parent, offset)
     offset += 16
     self.area = RECTANGLE(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(8, offset)
     self.geometry = RECTANGLE(parent, offset, 8)
예제 #49
0
 def __init__(self, parent, offset=0):
     xcb.Reply.__init__(self, parent, offset)
     (
         self.width_actual,
         self.height_actual,
         self.num_palette_entries,
         self.entry_bytes,
     ) = unpack_from('xx2x4xHHHH', parent, offset)
     offset += 16
     self.component_order = xcb.List(parent, offset, 4, 'B', 1)
     offset += len(self.component_order.buf())
     offset += 12
     offset += xcb.type_pad(4, offset)
     self.priv_data = xcb.List(parent, offset, self.length, 'I', 4)
예제 #50
0
파일: xv.py 프로젝트: RockyLiys/app_tools
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (
         self.encoding,
         self.name_size,
         self.width,
         self.height,
     ) = unpack_from('IHHH2x', parent, offset)
     offset += 12
     self.rate = Rational(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(1, offset)
     self.name = xcb.List(parent, offset, self.name_size, 'b', 1)
     offset += len(self.name.buf())
     xcb._resize_obj(self, offset - base)
예제 #51
0
파일: xv.py 프로젝트: RockyLiys/app_tools
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (
         self.base_id,
         self.name_size,
         self.num_ports,
         self.num_formats,
         self.type,
     ) = unpack_from('IHHHBx', parent, offset)
     offset += 12
     self.name = xcb.List(parent, offset, self.name_size, 'b', 1)
     offset += len(self.name.buf())
     offset += 1
     offset += xcb.type_pad(8, offset)
     self.formats = xcb.List(parent, offset, self.num_formats, Format, 8)
     offset += len(self.formats.buf())
     xcb._resize_obj(self, offset - base)
예제 #52
0
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     self.core_requests = Range8(parent, offset, 2)
     offset += 2
     offset += xcb.type_pad(2, offset)
     self.core_replies = Range8(parent, offset, 2)
     offset += 2
     offset += xcb.type_pad(6, offset)
     self.ext_requests = ExtRange(parent, offset, 6)
     offset += 6
     offset += xcb.type_pad(6, offset)
     self.ext_replies = ExtRange(parent, offset, 6)
     offset += 6
     offset += xcb.type_pad(2, offset)
     self.delivered_events = Range8(parent, offset, 2)
     offset += 2
     offset += xcb.type_pad(2, offset)
     self.device_events = Range8(parent, offset, 2)
     offset += 2
     offset += xcb.type_pad(2, offset)
     self.errors = Range8(parent, offset, 2)
     offset += 2
     offset += xcb.type_pad(4, offset)
     (self.client_started, self.client_died,) = unpack_from('BB', parent, offset)
예제 #53
0
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     self.trigger = TRIGGER(parent, offset, 20)
     offset += 20
     offset += xcb.type_pad(8, offset)
     self.event_threshold = INT64(parent, offset, 8)
예제 #54
0
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     self.major = Range8(parent, offset, 2)
     offset += 2
     offset += xcb.type_pad(4, offset)
     self.minor = Range16(parent, offset, 4)
예제 #55
0
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     self.spec = ResourceIdSpec(parent, offset, 8)
     offset += 8
     offset += xcb.type_pad(4, offset)
     (self.bytes, self.ref_count, self.use_count,) = unpack_from('III', parent, offset)
예제 #56
0
 def __init__(self, parent, offset, size):
     xcb.Struct.__init__(self, parent, offset, size)
     self.top = SPANFIX(parent, offset, 12)
     offset += 12
     offset += xcb.type_pad(12, offset)
     self.bot = SPANFIX(parent, offset, 12)