Represents the game window and provides methods to modify its properties. The window encapsulates an SDL_Window, but it does not own it. The Window class is less of a wrapper and more of a controller. The actual owning is done by the Renderer.
Note that the Window class provides explicit set_xyz methods. This is to avoid juggling with boolean parameters. You describe the desired state, you do not tell it how to get there.
More...
#include <window.h>
Represents the game window and provides methods to modify its properties. The window encapsulates an SDL_Window, but it does not own it. The Window class is less of a wrapper and more of a controller. The actual owning is done by the Renderer.
Note that the Window class provides explicit set_xyz methods. This is to avoid juggling with boolean parameters. You describe the desired state, you do not tell it how to get there.
◆ Window()
| Window::Window |
( |
unsigned |
min_width, |
|
|
unsigned |
min_height |
|
) |
| |
|
explicit |
◆ get_window_height()
| int Window::get_window_height |
( |
| ) |
const |
Gets the current height of the window.
◆ get_window_width()
| int Window::get_window_width |
( |
| ) |
const |
Gets the current width of the window.
◆ set_window_bordered()
| Window & Window::set_window_bordered |
( |
| ) |
|
◆ set_window_borderless()
| Window & Window::set_window_borderless |
( |
| ) |
|
◆ set_window_fullscreen()
| Window & Window::set_window_fullscreen |
( |
| ) |
|
◆ set_window_height()
| Window & Window::set_window_height |
( |
unsigned |
height | ) |
|
◆ set_window_resizable()
| Window & Window::set_window_resizable |
( |
| ) |
|
◆ set_window_unresizable()
| Window & Window::set_window_unresizable |
( |
| ) |
|
◆ set_window_width()
| Window & Window::set_window_width |
( |
unsigned |
width | ) |
|
◆ set_window_windowed()
| Window & Window::set_window_windowed |
( |
| ) |
|
◆ Renderer
The documentation for this class was generated from the following file: