simvx.graphics.platform._qt¶
PySide6 windowing backend.
Module Contents¶
Classes¶
WindowBackend implementation using PySide6. |
Data¶
API¶
- simvx.graphics.platform._qt.__all__¶
[‘QtBackend’]
- class simvx.graphics.platform._qt.QtBackend¶
WindowBackend implementation using PySide6.
Initialization
- create_window(width: int, height: int, title: str) None¶
Create a QWindow with Vulkan surface.
- create_vulkan_surface(instance: Any) Any¶
Create a Vulkan surface from the QWindow.
- get_required_extensions() list[str]¶
Return platform-specific Vulkan extensions needed.
- poll_events() None¶
Process Qt events.
- should_close() bool¶
Check if window should close.
- get_framebuffer_size() tuple[int, int]¶
Get window framebuffer size.
- set_mouse_button_callback(callback: collections.abc.Callable[[int, int, int], None] | None) None¶
Register mouse button callback.
- get_cursor_pos() tuple[float, float]¶
Get current cursor position.
- destroy() None¶
Clean up Qt resources.