simvx.graphics.platform

Windowing abstraction — auto-detects available backend.

Package Contents

Functions

resolve_backend

Return a (backend, resolved_name) pair.

get_backend

Return a windowing backend instance. See :func:resolve_backend.

Data

API

simvx.graphics.platform.__all__

[‘AVAILABLE_BACKENDS’, ‘get_backend’, ‘resolve_backend’]

simvx.graphics.platform.AVAILABLE_BACKENDS: tuple[str, ...]

‘tuple(…)’

simvx.graphics.platform.resolve_backend(name: str | None = None) tuple[simvx.graphics.platform._base.WindowBackend, str][source]

Return a (backend, resolved_name) pair.

If name is None, tries each backend in order and returns the first one whose import succeeds along with its name.

simvx.graphics.platform.get_backend(name: str | None = None) simvx.graphics.platform._base.WindowBackend[source]

Return a windowing backend instance. See :func:resolve_backend.