mini_arcade_native_backend.ports.window¶
Window port implementation for the native backend.
Classes¶
Port for window management. |
Module Contents¶
- class mini_arcade_native_backend.ports.window.WindowPort(native_window: mini_arcade_native_backend._native.Window)¶
Port for window management.
- Parameters:
native_window (Window) – The native window instance.
- refresh()¶
Refresh cached window size values.
- 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]