1 | #ifndef IWINDOW_HPP_ |
2 | #define IWINDOW_HPP_ |
3 |
|
4 |
|
5 | #include <cstdint> |
6 | #include <string> |
7 |
|
8 | #include <SDL2/SDL.h> |
9 |
|
10 | #include "IUpdateable.hpp" |
11 |
|
12 |
|
13 | class IWindow : public IUpdateable |
14 | { |
15 | public: |
16 | virtual bool Update(uint64_t time_since_last_update_us) = 0; |
17 |
|
18 | // Basic public interface |
19 | virtual void SetTitle(std::string new_title) = 0; |
20 | virtual void SetFullscreen(bool is_fullscreen) = 0; |
21 | virtual void SetSize(uint64_t new_width, uint64_t new_height) = 0; |
22 | virtual void SetPosition(uint64_t new_x, uint64_t new_y) = 0; |
23 | }; |
24 |
|
25 |
|
26 | #endif /* IWINDOW_HPP_ */ |
27 |
|