Interface

class pywayland.scanner.interface.Interface(name: 'str', version: 'str', description: 'Description | None', enum: 'list[Enum]', event: 'list[Event]', request: 'list[Request]')
class_name

Returns the name of the class of the interface

Camel cases the name of the interface, to be used as the class name.

output(printer: Printer, module_imports: dict[str, str]) → None

Generate the output for the interface to the printer

classmethod parse(element: xml.etree.ElementTree.Element) → pywayland.scanner.interface.Interface

Scanner for interface objects

Required attributes: name and version

Child elements: description, request, event, enum