コード例 #1
0
ファイル: xinput.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.control_id, self.len, self.first_valuator, self.num_valuators,) = unpack_from('HHBB', self, count)
     count += 6
     self.resolution_values = xcb.List(self, count, self.num_valuators, 'I', 4)
     count += len(self.resolution_values.buf())
     xcb._resize_obj(self, count)
コード例 #2
0
ファイル: render.py プロジェクト: JacksonKearl/Graphical
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (self.num_depths, self.fallback,) = unpack_from('II', parent, offset)
     offset += 8
     self.depths = xcb.List(parent, offset, self.num_depths, PICTDEPTH, -1)
     offset += len(self.depths.buf())
     xcb._resize_obj(self, offset - base)
コード例 #3
0
ファイル: render.py プロジェクト: JacksonKearl/Graphical
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (self.depth, self.num_visuals,) = unpack_from('BxH4x', parent, offset)
     offset += 8
     self.visuals = xcb.List(parent, offset, self.num_visuals, PICTVISUAL, 8)
     offset += len(self.visuals.buf())
     xcb._resize_obj(self, offset - base)
コード例 #4
0
ファイル: xinput.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.class_id, self.len, self.axes_len, self.mode, self.motion_size,) = unpack_from('BBBBI', self, count)
     count += 8
     self.axes = xcb.List(self, count, self.axes_len, AxisInfo, 12)
     count += len(self.axes.buf())
     xcb._resize_obj(self, count)
コード例 #5
0
ファイル: xv.py プロジェクト: hhismans/fdf
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (self.flags, self.min, self.max, self.size,) = unpack_from('IiiI', parent, offset)
     offset += 16
     self.name = xcb.List(parent, offset, self.size, 'b', 1)
     offset += len(self.name.buf())
     xcb._resize_obj(self, offset - base)
コード例 #6
0
ファイル: xinput.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.class_id, self.len, self.num_valuators, self.mode,) = unpack_from('BBBB', self, count)
     count += 4
     self.valuators = xcb.List(self, count, self.num_valuators, 'I', 4)
     count += len(self.valuators.buf())
     xcb._resize_obj(self, count)
コード例 #7
0
ファイル: xv.py プロジェクト: samurai-x/samurai-x
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.flags, self.min, self.max, self.size) = unpack_ex("IiiI", self, count)
     count += 16
     self.name = xcb.List(self, count, self.size, "b", 1)
     count += len(self.name.buf())
     xcb._resize_obj(self, count)
コード例 #8
0
ファイル: record.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.client_resource, self.num_ranges,) = unpack_from('II', self, count)
     count += 8
     self.ranges = xcb.List(self, count, self.num_ranges, Range, 24)
     count += len(self.ranges.buf())
     xcb._resize_obj(self, count)
コード例 #9
0
ファイル: xv.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.flags, self.min, self.max, self.size,) = unpack_from('IiiI', self, count)
     count += 16
     self.name = xcb.List(self, count, self.size, 'b', 1)
     count += len(self.name.buf())
     xcb._resize_obj(self, count)
コード例 #10
0
ファイル: render.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.depth, self.num_visuals,) = unpack_from('BxH4x', self, count)
     count += 8
     self.visuals = xcb.List(self, count, self.num_visuals, PICTVISUAL, 8)
     count += len(self.visuals.buf())
     xcb._resize_obj(self, count)
コード例 #11
0
ファイル: render.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.num_depths, self.fallback,) = unpack_from('II', self, count)
     count += 8
     self.depths = xcb.List(self, count, self.num_depths, PICTDEPTH, -1)
     count += len(self.depths.buf())
     xcb._resize_obj(self, count)
コード例 #12
0
ファイル: randr.py プロジェクト: JacksonKearl/Graphical
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (self.nRates,) = unpack_from('H', parent, offset)
     offset += 2
     self.rates = xcb.List(parent, offset, self.nRates, 'H', 2)
     offset += len(self.rates.buf())
     xcb._resize_obj(self, offset - base)
コード例 #13
0
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (self.client_resource, self.num_ranges,) = unpack_from('II', parent, offset)
     offset += 8
     self.ranges = xcb.List(parent, offset, self.num_ranges, Range, 24)
     offset += len(self.ranges.buf())
     xcb._resize_obj(self, offset - base)
コード例 #14
0
ファイル: xinput.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.class_id, self.id, self.len, self.num_keysyms,) = unpack_from('BBH2xH', self, count)
     count += 8
     self.keysyms = xcb.List(self, count, self.num_keysyms, 'I', 4)
     count += len(self.keysyms.buf())
     xcb._resize_obj(self, count)
コード例 #15
0
ファイル: randr.py プロジェクト: samurai-x/samurai-x
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.nRates,) = unpack_ex('H', self, count)
     count += 2
     self.rates = xcb.List(self, count, self.nRates, 'H', 2)
     count += len(self.rates.buf())
     xcb._resize_obj(self, count)
コード例 #16
0
ファイル: xv.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.base_id, self.name_size, self.num_ports, self.num_formats, self.type,) = unpack_from('IHHHBx', self, count)
     count += 12
     self.name = xcb.List(self, count, self.name_size, 'b', 1)
     count += len(self.name.buf())
     count += xcb.type_pad(8, count)
     self.formats = xcb.List(self, count, self.num_formats, Format, 8)
     count += len(self.formats.buf())
     xcb._resize_obj(self, count)
コード例 #17
0
ファイル: xv.py プロジェクト: hhismans/fdf
 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)
コード例 #18
0
ファイル: xselinux.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.name, self.object_context_len, self.data_context_len,) = unpack_from('III', self, count)
     count += 12
     self.object_context = xcb.List(self, count, self.object_context_len, 'b', 1)
     count += len(self.object_context.buf())
     count += xcb.type_pad(1, count)
     self.data_context = xcb.List(self, count, self.data_context_len, 'b', 1)
     count += len(self.data_context.buf())
     xcb._resize_obj(self, count)
コード例 #19
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)
コード例 #20
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)
コード例 #21
0
ファイル: render.py プロジェクト: RockyLiys/app_tools
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (
         self.num_depths,
         self.fallback,
     ) = unpack_from('II', parent, offset)
     offset += 8
     self.depths = xcb.List(parent, offset, self.num_depths, PICTDEPTH, -1)
     offset += len(self.depths.buf())
     xcb._resize_obj(self, offset - base)
コード例 #22
0
ファイル: xv.py プロジェクト: samurai-x/samurai-x
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.encoding, self.name_size, self.width, self.height) = unpack_ex("IHHH", self, count)
     count += 10
     self.rate = Rational(self, count, 8)
     count += 8
     count += xcb.type_pad(1, count)
     self.name = xcb.List(self, count, self.name_size, "b", 1)
     count += len(self.name.buf())
     xcb._resize_obj(self, count)
コード例 #23
0
ファイル: render.py プロジェクト: RockyLiys/app_tools
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (
         self.depth,
         self.num_visuals,
     ) = unpack_from('BxH4x', parent, offset)
     offset += 8
     self.visuals = xcb.List(parent, offset, self.num_visuals, PICTVISUAL,
                             8)
     offset += len(self.visuals.buf())
     xcb._resize_obj(self, offset - base)
コード例 #24
0
ファイル: xv.py プロジェクト: samurai-x/samurai-x
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.base_id, self.name_size, self.num_ports, self.num_formats, self.type, self.pad) = unpack_ex(
         "IHHHBB", self, count
     )
     count += 12
     self.name = xcb.List(self, count, self.name_size, "b", 1)
     count += len(self.name.buf())
     count += xcb.type_pad(5, count)
     self.formats = xcb.List(self, count, self.num_formats, Format, 5)
     count += len(self.formats.buf())
     xcb._resize_obj(self, count)
コード例 #25
0
ファイル: xprint.py プロジェクト: RockyLiys/app_tools
 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)
コード例 #26
0
ファイル: xv.py プロジェクト: RockyLiys/app_tools
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     base = offset
     (
         self.flags,
         self.min,
         self.max,
         self.size,
     ) = unpack_from('IiiI', parent, offset)
     offset += 16
     self.name = xcb.List(parent, offset, self.size, 'b', 1)
     offset += len(self.name.buf())
     xcb._resize_obj(self, offset - base)
コード例 #27
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)
コード例 #28
0
ファイル: xprint.py プロジェクト: hhismans/fdf
 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)
コード例 #29
0
ファイル: sync.py プロジェクト: hhismans/fdf
 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)
コード例 #30
0
ファイル: xprint.py プロジェクト: aosm/X11libs
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.nameLen,) = unpack_from('I', self, count)
     count += 4
     self.name = xcb.List(self, count, self.nameLen, 'b', 1)
     count += len(self.name.buf())
     (self.descLen,) = unpack_from('I', self, count)
     count += 4
     count += xcb.type_pad(1, count)
     self.description = xcb.List(self, count, self.descLen, 'b', 1)
     count += len(self.description.buf())
     xcb._resize_obj(self, count)
コード例 #31
0
ファイル: sync.py プロジェクト: samurai-x/samurai-x
 def __init__(self, parent, offset):
     xcb.Struct.__init__(self, parent, offset)
     count = 0
     (self.counter,) = unpack_ex('I', self, count)
     count += 4
     self.resolution = INT64(self, count, 8)
     count += 8
     (self.name_len,) = unpack_ex('H', self, count)
     count += 2
     count += xcb.type_pad(1, count)
     self.name = xcb.List(self, count, self.name_len, 'B', 1)
     count += len(self.name.buf())
     xcb._resize_obj(self, count)
コード例 #32
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)
コード例 #33
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)
コード例 #34
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)
コード例 #35
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)
コード例 #36
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)
コード例 #37
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)