mini_arcade_native_backend.native_backend ========================================= .. py:module:: mini_arcade_native_backend.native_backend .. autoapi-nested-parse:: Native backend façade. Classes ------- .. autoapisummary:: mini_arcade_native_backend.native_backend.NativeBackend Module Contents --------------- .. py:class:: NativeBackend(settings: mini_arcade_native_backend.config.NativeBackendSettings | None = None) Native backend façade. Intentionally small: expose ports as attributes. Core will be updated to depend on these sub-ports. :param settings: Backend settings. :type settings: NativeBackendSettings | None .. py:attribute:: window :type: mini_arcade_native_backend.ports.window.WindowPort | None :value: None .. py:attribute:: input :type: mini_arcade_native_backend.ports.input.InputPort | None :value: None .. py:attribute:: render :type: mini_arcade_native_backend.ports.render.RenderPort | None :value: None .. py:attribute:: text :type: mini_arcade_native_backend.ports.text.TextPort | None :value: None .. py:attribute:: audio :type: mini_arcade_native_backend.ports.audio.AudioPort | None :value: None .. py:attribute:: capture :type: mini_arcade_native_backend.ports.capture.CapturePort | None :value: None .. py:method:: init() Initialize the native backend with the given window settings. .. py:method:: set_viewport_transform(offset_x: int, offset_y: int, scale: float) Set the viewport transformation. :param offset_x: Horizontal offset. :type offset_x: int :param offset_y: Vertical offset. :type offset_y: int :param scale: Scaling factor. :type scale: float .. py:method:: clear_viewport_transform() Clear the viewport transformation (reset to defaults).