Example #1
0
#
# This file generated automatically from render.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 = 0
MINOR_VERSION = 11

key = xcb.ExtensionKey('RENDER')


class PictType:
    Indexed = 0
    Direct = 1


class Picture:
    _None = 0


class PictOp:
    Clear = 0
    Src = 1
    Dst = 2
    Over = 3
Example #2
0
#
# This file generated automatically from xprint.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 = 1
MINOR_VERSION = 0

key = xcb.ExtensionKey('XpExtension')


class PRINTER(xcb.Struct):
    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)
Example #3
0
# This file generated automatically from xvmc.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 shm
import xv

MAJOR_VERSION = 1
MINOR_VERSION = 1

key = xcb.ExtensionKey('XVideo-MotionCompensation')


class SurfaceInfo(xcb.Struct):
    def __init__(self, parent, offset, size):
        xcb.Struct.__init__(self, parent, offset, size)
        (
            self.id,
            self.chroma_format,
            self.pad0,
            self.max_width,
            self.max_height,
            self.subpicture_max_width,
            self.subpicture_max_height,
            self.mc_type,
            self.flags,
Example #4
0
#
# This file generated automatically from xv.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 shm

MAJOR_VERSION = 2
MINOR_VERSION = 2

key = xcb.ExtensionKey('XVideo')


class Type:
    InputMask = 1
    OutputMask = 2
    VideoMask = 4
    StillMask = 8
    ImageMask = 16


class ImageFormatInfoType:
    RGB = 0
    YUV = 1

Example #5
0
#
# This file generated automatically from shm.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 = 1
MINOR_VERSION = 2

key = xcb.ExtensionKey('MIT-SHM')

class CompletionEvent(xcb.Event):
    def __init__(self, parent, offset=0):
        xcb.Event.__init__(self, parent, offset)
        (self.drawable, self.minor_event, self.major_event, self.shmseg, self.offset,) = unpack_from('xx2xIHBxII', parent, offset)

class SegError(xcb.Error):
    def __init__(self, parent, offset=0):
        xcb.Error.__init__(self, parent, offset)
        (self.bad_value, self.minor_opcode, self.major_opcode,) = unpack_from('xx2xIHBx', parent, offset)

class BadSeg(xcb.ProtocolException):
    pass

class QueryVersionCookie(xcb.Cookie):
    pass
Example #6
0
# This file generated automatically from xfixes.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

MAJOR_VERSION = 5
MINOR_VERSION = 0

key = xcb.ExtensionKey('XFIXES')

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 SaveSetMode:
    Insert = 0
    Delete = 1

class SaveSetTarget:
    Nearest = 0
Example #7
0
#
# This file generated automatically from screensaver.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 = 1
MINOR_VERSION = 1

key = xcb.ExtensionKey('MIT-SCREEN-SAVER')

class Kind:
    Blanked = 0
    Internal = 1
    External = 2

class Event:
    NotifyMask = 1
    CycleMask = 2

class State:
    Off = 0
    On = 1
    Cycle = 2
    Disabled = 3
Example #8
0
#
# This file generated automatically from bigreq.xml by py_client.py.
# Edit at your peril.
#

import xcb
import cStringIO
from struct import pack, unpack_from
from array import array

MAJOR_VERSION = 0
MINOR_VERSION = 0

key = xcb.ExtensionKey('BIG-REQUESTS')


class EnableCookie(xcb.Cookie):
    pass


class EnableReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)
        (self.maximum_request_length, ) = unpack_from('xx2x4xI', parent,
                                                      offset)


class bigreqExtension(xcb.Extension):
    def Enable(self, ):
        buf = cStringIO.StringIO()
        buf.write(pack('=xx2x', ))
Example #9
0
# 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 = 1
MINOR_VERSION = 1

key = xcb.ExtensionKey('DAMAGE')


class ReportLevel:
    RawRectangles = 0
    DeltaRectangles = 1
    BoundingBox = 2
    NonEmpty = 3


class DamageError(xcb.Error):
    def __init__(self, parent, offset=0):
        xcb.Error.__init__(self, parent, offset)


class BadDamage(xcb.ProtocolException):
Example #10
0
#
# This file generated automatically from shape.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 = 1
MINOR_VERSION = 1

key = xcb.ExtensionKey('SHAPE')

class SO:
    Set = 0
    Union = 1
    Intersect = 2
    Subtract = 3
    Invert = 4

class SK:
    Bounding = 0
    Clip = 1
    Input = 2

class NotifyEvent(xcb.Event):
    def __init__(self, parent, offset=0):
        xcb.Event.__init__(self, parent, offset)
Example #11
0
#
# This file generated automatically from xc_misc.xml by py_client.py.
# Edit at your peril.
#

import xcb
import cStringIO
from struct import pack, unpack_from
from array import array

MAJOR_VERSION = 1
MINOR_VERSION = 1

key = xcb.ExtensionKey('XC-MISC')

class GetVersionCookie(xcb.Cookie):
    pass

class GetVersionReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)
        (self.server_major_version, self.server_minor_version,) = unpack_from('xx2x4xHH', parent, offset)

class GetXIDRangeCookie(xcb.Cookie):
    pass

class GetXIDRangeReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)
        (self.start_id, self.count,) = unpack_from('xx2x4xII', parent, offset)
Example #12
0
#
# This file generated automatically from xf86dri.xml by py_client.py.
# Edit at your peril.
#

import xcb
import cStringIO
from struct import pack, unpack_from
from array import array

MAJOR_VERSION = 4
MINOR_VERSION = 1

key = xcb.ExtensionKey('XFree86-DRI')

class DrmClipRect(xcb.Struct):
    def __init__(self, parent, offset, size):
        xcb.Struct.__init__(self, parent, offset, size)
        (self.x1, self.y1, self.x2, self.x3,) = unpack_from('hhhh', parent, offset)

class QueryVersionCookie(xcb.Cookie):
    pass

class QueryVersionReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)
        (self.dri_major_version, self.dri_minor_version, self.dri_minor_patch,) = unpack_from('xx2x4xHHI', parent, offset)

class QueryDirectRenderingCapableCookie(xcb.Cookie):
    pass
Example #13
0
#
# This file generated automatically from record.xml by py_client.py.
# Edit at your peril.
#

import xcb
import cStringIO
from struct import pack, unpack_from
from array import array

MAJOR_VERSION = 1
MINOR_VERSION = 13

key = xcb.ExtensionKey('RECORD')

class Range8(xcb.Struct):
    def __init__(self, parent, offset, size):
        xcb.Struct.__init__(self, parent, offset, size)
        (self.first, self.last,) = unpack_from('BB', parent, offset)

class Range16(xcb.Struct):
    def __init__(self, parent, offset, size):
        xcb.Struct.__init__(self, parent, offset, size)
        (self.first, self.last,) = unpack_from('HH', parent, offset)

class ExtRange(xcb.Struct):
    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)
Example #14
0
#
# This file generated automatically from sync.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 = 3
MINOR_VERSION = 1

key = xcb.ExtensionKey('SYNC')

class ALARMSTATE:
    Active = 0
    Inactive = 1
    Destroyed = 2

class TESTTYPE:
    PositiveTransition = 0
    NegativeTransition = 1
    PositiveComparison = 2
    NegativeComparison = 3

class VALUETYPE:
    Absolute = 0
    Relative = 1
Example #15
0
#
# This file generated automatically from dpms.xml by py_client.py.
# Edit at your peril.
#

import xcb
import cStringIO
from struct import pack, unpack_from
from array import array

MAJOR_VERSION = 0
MINOR_VERSION = 0

key = xcb.ExtensionKey('DPMS')


class GetVersionCookie(xcb.Cookie):
    pass


class GetVersionReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)
        (
            self.server_major_version,
            self.server_minor_version,
        ) = unpack_from('xx2x4xHH', parent, offset)


class CapableCookie(xcb.Cookie):
    pass
Example #16
0
#
# This file generated automatically from xevie.xml by py_client.py.
# Edit at your peril.
#

import xcb
import cStringIO
from struct import pack, unpack_from
from array import array

MAJOR_VERSION = 1
MINOR_VERSION = 0

key = xcb.ExtensionKey('XEVIE')

class QueryVersionCookie(xcb.Cookie):
    pass

class QueryVersionReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)
        (self.server_major_version, self.server_minor_version,) = unpack_from('xx2x4xHH20x', parent, offset)

class StartCookie(xcb.Cookie):
    pass

class StartReply(xcb.Reply):
    def __init__(self, parent, offset=0):
        xcb.Reply.__init__(self, parent, offset)

class EndCookie(xcb.Cookie):
Example #17
0
#
# This file generated automatically from res.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 = 1
MINOR_VERSION = 2

key = xcb.ExtensionKey('X-Resource')

class Client(xcb.Struct):
    def __init__(self, parent, offset, size):
        xcb.Struct.__init__(self, parent, offset, size)
        (self.resource_base, self.resource_mask,) = unpack_from('II', parent, offset)

class Type(xcb.Struct):
    def __init__(self, parent, offset, size):
        xcb.Struct.__init__(self, parent, offset, size)
        (self.resource_type, self.count,) = unpack_from('II', parent, offset)

class ClientIdMask:
    ClientXID = 1
    LocalClientPID = 2

class ClientIdSpec(xcb.Struct):
# 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 = 4

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)
        (
Example #19
0
#
# 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 = 2

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:
Example #20
0
#
# This file generated automatically from xinerama.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 = 1
MINOR_VERSION = 1

key = xcb.ExtensionKey('XINERAMA')


class ScreenInfo(xcb.Struct):
    def __init__(self, parent, offset, size):
        xcb.Struct.__init__(self, parent, offset, size)
        (
            self.x_org,
            self.y_org,
            self.width,
            self.height,
        ) = unpack_from('hhHH', parent, offset)


class QueryVersionCookie(xcb.Cookie):
    pass