mini_arcade_pygame_backend.ports.window¶
Window port implementation for the pygame backend.
Classes¶
Port for window management. |
Module Contents¶
- class mini_arcade_pygame_backend.ports.window.WindowPort(width: int, height: int, title: str, resizable: bool)¶
Port for window management.
- width: int¶
- height: int¶
- screen¶
- set_title(title: str)¶
Set the window title.
- Parameters:
title (str) – New window title.
- resize(width: int, height: int)¶
Resize the window.
- Parameters:
width (int) – New width in pixels.
height (int) – New height in pixels.
- size() tuple[int, int]¶
Get the window size.
- Returns:
Tuple of (width, height) in pixels.
- Return type:
tuple[int, int]
- drawable_size() tuple[int, int]¶
Get the drawable size of the window.
- Returns:
Tuple of (width, height) in pixels.
- Return type:
tuple[int, int]