#include <ios_window_backend.h>


Public Member Functions | |
| IOSWindowBackend ()=default | |
| ~IOSWindowBackend () override=default | |
| absl::Status | Initialize (const WindowConfig &config) override |
| Initialize the window backend with configuration. | |
| absl::Status | Shutdown () override |
| Shutdown the window backend and release resources. | |
| bool | IsInitialized () const override |
| Check if the backend is initialized. | |
| bool | PollEvent (WindowEvent &out_event) override |
| Poll and process pending events. | |
| void | ProcessNativeEvent (void *native_event) override |
| Process a native SDL event (for ImGui integration) | |
| WindowStatus | GetStatus () const override |
| Get current window status. | |
| bool | IsActive () const override |
| Check if window is still active (not closed) | |
| void | SetActive (bool active) override |
| Set window active state. | |
| void | GetSize (int *width, int *height) const override |
| Get window dimensions. | |
| void | SetSize (int width, int height) override |
| Set window dimensions. | |
| std::string | GetTitle () const override |
| Get window title. | |
| void | SetTitle (const std::string &title) override |
| Set window title. | |
| bool | InitializeRenderer (gfx::IRenderer *renderer) override |
| Initialize renderer for this window. | |
| SDL_Window * | GetNativeWindow () override |
| Get the underlying SDL_Window pointer for ImGui integration. | |
| absl::Status | InitializeImGui (gfx::IRenderer *renderer) override |
| Initialize ImGui backends for this window/renderer combo. | |
| void | ShutdownImGui () override |
| Shutdown ImGui backends. | |
| void | NewImGuiFrame () override |
| Start a new ImGui frame. | |
| void | RenderImGui (gfx::IRenderer *renderer) override |
| Render ImGui draw data (and viewports if enabled) | |
| uint32_t | GetAudioDevice () const override |
| Get audio device ID (for legacy audio buffer management) | |
| std::shared_ptr< int16_t > | GetAudioBuffer () const override |
| Get audio buffer (for legacy audio management) | |
| std::string | GetBackendName () const override |
| Get backend name for debugging/logging. | |
| int | GetSDLVersion () const override |
| Get SDL version being used. | |
Public Member Functions inherited from yaze::platform::IWindowBackend | |
| virtual | ~IWindowBackend ()=default |
Private Attributes | |
| bool | initialized_ = false |
| bool | imgui_initialized_ = false |
| WindowStatus | status_ {} |
| std::string | title_ |
| void * | metal_view_ = nullptr |
| void * | command_queue_ = nullptr |
Definition at line 12 of file ios_window_backend.h.
|
default |
|
overridedefault |
|
overridevirtual |
Initialize the window backend with configuration.
| config | Window configuration parameters |
Implements yaze::platform::IWindowBackend.
Definition at line 67 of file ios_window_backend.mm.
References yaze::platform::WindowConfig::fullscreen, yaze::platform::ios::GetMetalView(), yaze::platform::WindowStatus::height, initialized_, yaze::platform::WindowStatus::is_active, yaze::platform::WindowStatus::is_focused, yaze::platform::WindowStatus::is_fullscreen, metal_view_, status_, yaze::platform::WindowConfig::title, title_, and yaze::platform::WindowStatus::width.

|
overridevirtual |
Shutdown the window backend and release resources.
Implements yaze::platform::IWindowBackend.
Definition at line 92 of file ios_window_backend.mm.
References command_queue_, initialized_, metal_view_, and ShutdownImGui().

|
overridevirtual |
Check if the backend is initialized.
Implements yaze::platform::IWindowBackend.
Definition at line 107 of file ios_window_backend.mm.
References initialized_.
|
overridevirtual |
Poll and process pending events.
| out_event | Output parameter for the next event |
Implements yaze::platform::IWindowBackend.
Definition at line 111 of file ios_window_backend.mm.
|
overridevirtual |
Process a native SDL event (for ImGui integration)
| native_event | Pointer to native SDL_Event |
Implements yaze::platform::IWindowBackend.
Definition at line 116 of file ios_window_backend.mm.
|
overridevirtual |
Get current window status.
Implements yaze::platform::IWindowBackend.
Definition at line 120 of file ios_window_backend.mm.
References yaze::platform::WindowStatus::height, metal_view_, status_, and yaze::platform::WindowStatus::width.
|
overridevirtual |
Check if window is still active (not closed)
Implements yaze::platform::IWindowBackend.
Definition at line 132 of file ios_window_backend.mm.
References yaze::platform::WindowStatus::is_active, and status_.
|
overridevirtual |
Set window active state.
Implements yaze::platform::IWindowBackend.
Definition at line 136 of file ios_window_backend.mm.
References yaze::platform::WindowStatus::is_active, and status_.
|
overridevirtual |
Get window dimensions.
Implements yaze::platform::IWindowBackend.
Definition at line 140 of file ios_window_backend.mm.
References metal_view_.
|
overridevirtual |
Set window dimensions.
Implements yaze::platform::IWindowBackend.
Definition at line 162 of file ios_window_backend.mm.
References metal_view_.
|
overridevirtual |
Get window title.
Implements yaze::platform::IWindowBackend.
Definition at line 174 of file ios_window_backend.mm.
References title_.
|
overridevirtual |
Set window title.
Implements yaze::platform::IWindowBackend.
Definition at line 178 of file ios_window_backend.mm.
References title_.
|
overridevirtual |
Initialize renderer for this window.
| renderer | The renderer to initialize |
Implements yaze::platform::IWindowBackend.
Definition at line 182 of file ios_window_backend.mm.
References yaze::gfx::IRenderer::GetBackendRenderer(), yaze::gfx::IRenderer::Initialize(), LOG_WARN, metal_view_, and yaze::gfx::MetalRenderer::SetMetalView().

|
overridevirtual |
Get the underlying SDL_Window pointer for ImGui integration.
Implements yaze::platform::IWindowBackend.
Definition at line 201 of file ios_window_backend.mm.
|
overridevirtual |
Initialize ImGui backends for this window/renderer combo.
| renderer | The renderer (for backend-specific init) |
Implements yaze::platform::IWindowBackend.
Definition at line 205 of file ios_window_backend.mm.
References yaze::gui::ColorsYaze(), command_queue_, imgui_initialized_, yaze::LoadPackageFonts(), LOG_INFO, and metal_view_.

|
overridevirtual |
Shutdown ImGui backends.
Implements yaze::platform::IWindowBackend.
Definition at line 267 of file ios_window_backend.mm.
References imgui_initialized_.
Referenced by Shutdown().
|
overridevirtual |
Start a new ImGui frame.
Implements yaze::platform::IWindowBackend.
Definition at line 278 of file ios_window_backend.mm.
References imgui_initialized_, and metal_view_.
|
overridevirtual |
Render ImGui draw data (and viewports if enabled)
| renderer | The renderer to use for drawing (needed to get backend renderer) |
Implements yaze::platform::IWindowBackend.
Definition at line 300 of file ios_window_backend.mm.
References command_queue_, imgui_initialized_, and metal_view_.
|
overridevirtual |
Get audio device ID (for legacy audio buffer management)
Implements yaze::platform::IWindowBackend.
Definition at line 334 of file ios_window_backend.mm.
|
overridevirtual |
Get audio buffer (for legacy audio management)
Implements yaze::platform::IWindowBackend.
Definition at line 338 of file ios_window_backend.mm.
|
overridevirtual |
Get backend name for debugging/logging.
Implements yaze::platform::IWindowBackend.
Definition at line 342 of file ios_window_backend.mm.
|
overridevirtual |
Get SDL version being used.
Implements yaze::platform::IWindowBackend.
Definition at line 346 of file ios_window_backend.mm.
|
private |
Definition at line 47 of file ios_window_backend.h.
Referenced by Initialize(), IsInitialized(), and Shutdown().
|
private |
Definition at line 48 of file ios_window_backend.h.
Referenced by InitializeImGui(), NewImGuiFrame(), RenderImGui(), and ShutdownImGui().
|
private |
Definition at line 49 of file ios_window_backend.h.
Referenced by GetStatus(), Initialize(), IsActive(), and SetActive().
|
private |
Definition at line 50 of file ios_window_backend.h.
Referenced by GetTitle(), Initialize(), and SetTitle().
|
private |
Definition at line 51 of file ios_window_backend.h.
Referenced by GetSize(), GetStatus(), Initialize(), InitializeImGui(), InitializeRenderer(), NewImGuiFrame(), RenderImGui(), SetSize(), and Shutdown().
|
private |
Definition at line 52 of file ios_window_backend.h.
Referenced by InitializeImGui(), RenderImGui(), and Shutdown().