Logo Search packages:      
Sourcecode: xcb-proto version File versions

def xcbgen::xtypes::Request::resolve (   self,
  module 
)

Abstract method for resolving a type.
This should make sure any referenced types are already declared.

Reimplemented from xcbgen::xtypes::ComplexType.

Definition at line 387 of file xtypes.py.

00387                              :
        if self.resolved:
            return
        # Add the automatic protocol fields
        if module.namespace.is_ext:
            self.fields.append(Field(tcard8, tcard8.name, 'major_opcode', False, True, True))
            self.fields.append(Field(tcard8, tcard8.name, 'minor_opcode', False, True, True))
            self.fields.append(Field(tcard16, tcard16.name, 'length', False, True, True))
            ComplexType.resolve(self, module)
        else:
            self.fields.append(Field(tcard8, tcard8.name, 'major_opcode', False, True, True))
            self.fields.append(_placeholder_byte)
            self.fields.append(Field(tcard16, tcard16.name, 'length', False, True, True))
            ComplexType.resolve(self, module)

        if self.reply:
            self.reply.resolve(module)

    out = __main__.output['request']


Generated by  Doxygen 1.6.0   Back to index