mini_arcade_native_backend.ports.window ======================================= .. py:module:: mini_arcade_native_backend.ports.window .. autoapi-nested-parse:: Window port implementation for the native backend. Classes ------- .. autoapisummary:: mini_arcade_native_backend.ports.window.WindowPort Module Contents --------------- .. py:class:: WindowPort(native_window: mini_arcade_native_backend._native.Window) Port for window management. :param native_window: The native window instance. :type native_window: Window .. py:method:: refresh() Refresh cached window size values. .. py:method:: set_title(title: str) Set the window title. :param title: New window title. :type title: str .. py:method:: resize(width: int, height: int) Resize the window. :param width: New width in pixels. :type width: int :param height: New height in pixels. :type height: int .. py:method:: size() -> tuple[int, int] Get the window size. :return: Tuple of (width, height) in pixels. :rtype: tuple[int, int] .. py:method:: drawable_size() -> tuple[int, int] Get the drawable size of the window. :return: Tuple of (width, height) in pixels. :rtype: tuple[int, int]