Interface for managing SDL windows and renderers. More...
#include <iwindow_manager.h>
Public Member Functions | |
virtual | ~IWindowManager ()=default |
Virtual destructor for proper cleanup of derived classes. | |
virtual SDL_Window * | getPlayfieldWindow ()=0 |
Gets the playfield window. | |
virtual SDL_Window * | getBackglassWindow ()=0 |
Gets the backglass window. | |
virtual SDL_Window * | getDMDWindow ()=0 |
Gets the DMD window. | |
virtual SDL_Window * | getTopperWindow ()=0 |
Gets the DMD window. | |
virtual SDL_Renderer * | getPlayfieldRenderer ()=0 |
Gets the playfield renderer. | |
virtual SDL_Renderer * | getBackglassRenderer ()=0 |
Gets the backglass renderer. | |
virtual SDL_Renderer * | getDMDRenderer ()=0 |
Gets the DMD renderer. | |
virtual SDL_Renderer * | getTopperRenderer ()=0 |
Gets the Topper renderer. | |
virtual void | updateWindows (const Settings &settings)=0 |
Updates windows with new settings. | |
virtual void | getWindowSetup (int &playfieldX, int &playfieldY, int &playfieldWidth, int &playfieldHeight, int &backglassX, int &backglassY, int &backglassWidth, int &backglassHeight, int &dmdX, int &dmdY, int &dmdWidth, int &dmdHeight, int &topperX, int &topperY, int &topperWidth, int &topperHeight)=0 |
Gets the positions of all windows. | |
Interface for managing SDL windows and renderers.
Interface for window management (forward declaration).
This pure virtual class defines methods for accessing SDL windows and renderers for the playfield, backglass, and DMD displays, updating their configurations using application settings, and retrieving their positions. Implementers, such as WindowManager, coordinate with components like Renderer and AssetManager to manage display resources.
|
pure virtual |
Gets the backglass renderer.
Retrieves the SDL renderer for the backglass window.
Implemented in WindowManager.
|
pure virtual |
Gets the backglass window.
Retrieves the SDL window used for the backglass display.
Implemented in WindowManager.
|
pure virtual |
Gets the DMD renderer.
Retrieves the SDL renderer for the DMD window.
Implemented in WindowManager.
|
pure virtual |
Gets the DMD window.
Retrieves the SDL window used for the DMD (Dot Matrix Display).
Implemented in WindowManager.
|
pure virtual |
Gets the playfield renderer.
Retrieves the SDL renderer for the playfield window.
Implemented in WindowManager.
|
pure virtual |
Gets the playfield window.
Retrieves the SDL window used for the playfield display.
Implemented in WindowManager.
|
pure virtual |
Gets the Topper renderer.
Retrieves the SDL renderer for the Topper window.
Implemented in WindowManager.
|
pure virtual |
Gets the DMD window.
Retrieves the SDL window used for the topper display.
Implemented in WindowManager.
|
pure virtual |
Gets the positions of all windows.
Retrieves the x and y coordinates of the playfield, backglass, and DMD windows.
playfieldX | The x-coordinate of the playfield window. |
playfieldY | The y-coordinate of the playfield window. |
backglassX | The x-coordinate of the backglass window. |
backglassY | The y-coordinate of the backglass window. |
dmdX | The x-coordinate of the DMD window. |
dmdY | The y-coordinate of the DMD window. |
topperX | The x-coordinate of the Topper window. |
topperY | The y-coordinate of the Topper window. |
Implemented in WindowManager.
|
pure virtual |
Updates windows with new settings.
Reconfigures the playfield, backglass, and DMD windows based on the provided application settings, such as resolution, position, and DPI scaling.
settings | The application settings to apply. |
Implemented in WindowManager.