mini_arcade_pygame_backend.pygame_backend ========================================= .. py:module:: mini_arcade_pygame_backend.pygame_backend .. autoapi-nested-parse:: Pygame backend façade. Classes ------- .. autoapisummary:: mini_arcade_pygame_backend.pygame_backend.PygameBackend Module Contents --------------- .. py:class:: PygameBackend(settings: mini_arcade_pygame_backend.config.PygameBackendSettings) Pygame backend for mini-arcade. :ivar settings: Backend settings. .. py:attribute:: window :type: mini_arcade_pygame_backend.ports.window.WindowPort | None :value: None .. py:attribute:: input :type: mini_arcade_pygame_backend.ports.input.InputPort | None :value: None .. py:attribute:: render :type: mini_arcade_pygame_backend.ports.render.RenderPort | None :value: None .. py:attribute:: text :type: mini_arcade_pygame_backend.ports.text.TextPort | None :value: None .. py:attribute:: audio :type: mini_arcade_pygame_backend.ports.audio.AudioPort | None :value: None .. py:attribute:: capture :type: mini_arcade_pygame_backend.ports.capture.CapturePort | None :value: None .. py:method:: init() Initialize the pygame backend. This method sets up the necessary components for the backend to function. .. py:method:: set_viewport_transform(offset_x: int, offset_y: int, scale: float) Set the viewport transform. :param offset_x: The x offset. :type offset_x: int :param offset_y: The y offset. :type offset_y: int :param scale: The scale factor. :type scale: float .. py:method:: clear_viewport_transform() Clear the viewport transform (reset to defaults).