--- orphan: true --- # {py:mod}`simvx.graphics.platform._sdl3` ```{py:module} simvx.graphics.platform._sdl3 ``` ```{autodoc2-docstring} simvx.graphics.platform._sdl3 :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`Sdl3Backend ` - ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`__all__ ` - ```{autodoc2-docstring} simvx.graphics.platform._sdl3.__all__ :summary: ``` * - {py:obj}`log ` - ```{autodoc2-docstring} simvx.graphics.platform._sdl3.log :summary: ``` ```` ### API ````{py:data} __all__ :canonical: simvx.graphics.platform._sdl3.__all__ :value: > ['Sdl3Backend'] ```{autodoc2-docstring} simvx.graphics.platform._sdl3.__all__ ``` ```` ````{py:data} log :canonical: simvx.graphics.platform._sdl3.log :value: > 'getLogger(...)' ```{autodoc2-docstring} simvx.graphics.platform._sdl3.log ``` ```` `````{py:class} Sdl3Backend() :canonical: simvx.graphics.platform._sdl3.Sdl3Backend ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.__init__ ``` ````{py:method} create_window(width: int, height: int, title: str, *, visible: bool = True) -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.create_window ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.create_window ``` ```` ````{py:method} create_vulkan_surface(instance: typing.Any) -> typing.Any :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.create_vulkan_surface ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.create_vulkan_surface ``` ```` ````{py:method} get_required_extensions() -> list[str] :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.get_required_extensions ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.get_required_extensions ``` ```` ````{py:method} poll_events() -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.poll_events ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.poll_events ``` ```` ````{py:method} should_close() -> bool :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.should_close ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.should_close ``` ```` ````{py:method} get_framebuffer_size() -> tuple[int, int] :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.get_framebuffer_size ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.get_framebuffer_size ``` ```` ````{py:method} get_window_size() -> tuple[int, int] :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.get_window_size ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.get_window_size ``` ```` ````{py:method} set_key_callback(callback: collections.abc.Callable[[int, int, int], None] | None) -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.set_key_callback ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.set_key_callback ``` ```` ````{py:method} set_mouse_button_callback(callback: collections.abc.Callable[[int, int, int], None] | None) -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.set_mouse_button_callback ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.set_mouse_button_callback ``` ```` ````{py:method} set_cursor_pos_callback(callback: collections.abc.Callable[[float, float], None] | None) -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.set_cursor_pos_callback ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.set_cursor_pos_callback ``` ```` ````{py:method} set_scroll_callback(callback: collections.abc.Callable[[float, float], None] | None) -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.set_scroll_callback ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.set_scroll_callback ``` ```` ````{py:method} set_char_callback(callback: collections.abc.Callable[[int], None] | None) -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.set_char_callback ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.set_char_callback ``` ```` ````{py:method} set_touch_callback(callback: collections.abc.Callable[[int, int, float, float, float], None] | None) -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.set_touch_callback ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.set_touch_callback ``` ```` ````{py:method} get_cursor_pos() -> tuple[float, float] :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.get_cursor_pos ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.get_cursor_pos ``` ```` ````{py:method} set_cursor_shape(shape: int) -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.set_cursor_shape ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.set_cursor_shape ``` ```` ````{py:method} set_window_size(width: int, height: int) -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.set_window_size ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.set_window_size ``` ```` ````{py:method} request_close() -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.request_close ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.request_close ``` ```` ````{py:method} poll_gamepads() -> list[tuple[int, dict[str, bool], dict[str, float]]] :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.poll_gamepads ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.poll_gamepads ``` ```` ````{py:method} destroy() -> None :canonical: simvx.graphics.platform._sdl3.Sdl3Backend.destroy ```{autodoc2-docstring} simvx.graphics.platform._sdl3.Sdl3Backend.destroy ``` ```` `````