def __init__(self, namespace, is_void, name, reply, parameter_list): self.namespace = namespace self.is_void = is_void self.name = name self.reply = reply self.parameter_list = parameter_list self.request_name = _ext(_n_item(self.name[-1])) self.c_name = "xcb" \ + (("_" + get_namespace(namespace)) if namespace.is_ext else "") \ + "_" + self.request_name
def __init__(self, namespace, name, cookie, reply, accessors, parameter_list): self.namespace = namespace self.name = name self.reply = reply self.cookie = cookie self.accessors = accessors self.parameter_list = parameter_list self.request_name = _ext(_n_item(self.name[-1])) self.c_name = "xcb" \ + (("_" + get_namespace(namespace)) if namespace.is_ext else "") \ + "_" + self.request_name
def __init__(self, request, name, is_void, namespace, reply): self.request = request self.name = name self.request_name = _ext(_n_item(self.request.name[-1])) self.is_void = is_void self.namespace = namespace self.reply = reply self.c_namespace = \ "" if namespace.header.lower() == "xproto" \ else get_namespace(namespace) self.accessors = [] self.parameter_list = ParameterList() self.c_name = "xcb" \ + (("_" + get_namespace(namespace)) if namespace.is_ext else "") \ + "_" + self.request_name
def __init__(self, opcode, opcode_name, c_name, namespace, name, fields): self.opcode = opcode self.opcode_name = opcode_name self.c_name = c_name self.namespace = namespace self.fields = fields self.names = map(str.lower, _n_item(name[-1], True)) self.name = "_".join(map(str.lower, self.names)) self.nssopen = "" self.nssclose = "" self.scope = [] for name in self.names[0:-1]: if name in _reserved_keywords: name += "_" self.nssopen += " namespace %s {" % name self.nssclose += " };" self.scope.append(name)
def __init__(self, error, namespace, name, c_name, opcode, opcode_name): self.error = error self.namespace = namespace self.c_name = c_name self.opcode = opcode self.opcode_name = opcode_name self.names = list(map(str.lower, _n_item(name[-1], True))) self.name = "_".join(self.names) self.nssopen = "" self.nssclose = "" self.scope = [] for name in self.names[0:-1]: if name in _reserved_keywords: name += "_" self.nssopen += " namespace %s {" % name self.nssclose += " }" self.scope.append(name)
def __init__(self, error, namespace, name, c_name, opcode, opcode_name): self.error = error self.namespace = namespace self.c_name = c_name self.opcode = opcode self.opcode_name = opcode_name self.names = map(str.lower, _n_item(name[-1], True)) self.name = "_".join(map(str.lower, self.names)) self.nssopen = "" self.nssclose = "" self.scope = [] for name in self.names[0:-1]: if name in _reserved_keywords: name += "_" self.nssopen += " namespace %s {" % name self.nssclose += " };" self.scope.append(name)