ASAPCabinetFE
 
Loading...
Searching...
No Matches
iwindow_manager.h
Go to the documentation of this file.
1
11#ifndef IWINDOW_MANAGER_H
12#define IWINDOW_MANAGER_H
13
14#include <SDL2/SDL.h>
15#include "config/settings.h"
16
28public:
32 virtual ~IWindowManager() = default;
33
41 virtual SDL_Window* getPlayfieldWindow() = 0;
42
50 virtual SDL_Window* getBackglassWindow() = 0;
51
59 virtual SDL_Window* getDMDWindow() = 0;
60
68 virtual SDL_Window* getTopperWindow() = 0;
69
77 virtual SDL_Renderer* getPlayfieldRenderer() = 0;
78
86 virtual SDL_Renderer* getBackglassRenderer() = 0;
87
95 virtual SDL_Renderer* getDMDRenderer() = 0;
96
104 virtual SDL_Renderer* getTopperRenderer() = 0;
105
114 virtual void updateWindows(const Settings& settings) = 0;
115
130 virtual void getWindowSetup(int& playfieldX, int& playfieldY, int& playfieldWidth, int& playfieldHeight,
131 int& backglassX, int& backglassY, int& backglassWidth, int& backglassHeight,
132 int& dmdX, int& dmdY, int& dmdWidth, int& dmdHeight,
133 int& topperX, int& topperY, int& topperWidth, int& topperHeight) = 0;
134};
135
136#endif // IWINDOW_MANAGER_H
Interface for managing SDL windows and renderers.
Definition iwindow_manager.h:27
virtual SDL_Renderer * getPlayfieldRenderer()=0
Gets the playfield renderer.
virtual SDL_Renderer * getTopperRenderer()=0
Gets the Topper renderer.
virtual SDL_Window * getTopperWindow()=0
Gets the DMD window.
virtual SDL_Window * getDMDWindow()=0
Gets the DMD window.
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.
virtual ~IWindowManager()=default
Virtual destructor for proper cleanup of derived classes.
virtual SDL_Renderer * getDMDRenderer()=0
Gets the DMD renderer.
virtual SDL_Window * getBackglassWindow()=0
Gets the backglass window.
virtual void updateWindows(const Settings &settings)=0
Updates windows with new settings.
virtual SDL_Window * getPlayfieldWindow()=0
Gets the playfield window.
virtual SDL_Renderer * getBackglassRenderer()=0
Gets the backglass renderer.
Definition settings.h:12