Interface¶
-
class
pywayland.scanner.interface.
Interface
(name: str, version: str, description: Union[pywayland.scanner.description.Description, NoneType], enum: List[pywayland.scanner.enum.Enum], event: List[pywayland.scanner.event.Event], request: List[pywayland.scanner.request.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: pywayland.scanner.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
-