galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
WindowBindable.cpp
Go to the documentation of this file.
1
7
8#include "WindowBindable.hpp"
9
10namespace galaxy
11{
13 {
14 m_window = nullptr;
15 }
16
18 : m_window {nullptr}
19 {
20 }
21
23 {
24 this->m_window = w.m_window;
25 w.m_window = nullptr;
26 }
27
29 {
30 if (this != &w)
31 {
32 this->m_window = w.m_window;
33 w.m_window = nullptr;
34 }
35
36 return *this;
37 }
38
40 {
41 this->m_window = w.m_window;
42 }
43
45 {
46 if (this != &w)
47 {
48 this->m_window = w.m_window;
49 }
50
51 return *this;
52 }
53
54 void WindowBindable::bind_window(SDL_Window* window) noexcept
55 {
56 m_window = window;
57 }
58} // namespace galaxy
Binds the mouse to the window.
WindowBindable() noexcept
Constructor.
virtual WindowBindable & operator=(WindowBindable &&) noexcept
Move assignment operator.
virtual ~WindowBindable() noexcept
Virtual destructor.
SDL_Window * m_window
Pointer to SDL_Window handle.
void bind_window(SDL_Window *window) noexcept
Bind SDL3 window to this object.
Animated.cpp galaxy.
Definition Animated.cpp:16