mini_arcade_pygame_backend.ports.window ======================================= .. py:module:: mini_arcade_pygame_backend.ports.window .. autoapi-nested-parse:: Window port implementation for the pygame backend. Classes ------- .. autoapisummary:: mini_arcade_pygame_backend.ports.window.WindowPort Module Contents --------------- .. py:class:: WindowPort(width: int, height: int, title: str, resizable: bool) Port for window management. .. py:attribute:: width :type: int .. py:attribute:: height :type: int .. py:attribute:: screen .. 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]