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