MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ operator=() [2/2]

GlfwWindow & MayaFlux::Core::GlfwWindow::operator= ( GlfwWindow &&  other)
noexcept

Definition at line 93 of file GlfwWindow.cpp.

94{
95 if (this != &other) {
96 if (m_window) {
97 glfwDestroyWindow(m_window);
99 }
100
101 m_window = other.m_window;
102 m_create_info = std::move(other.m_create_info);
103 m_state = other.m_state;
104 m_input_config = other.m_input_config;
105 m_event_callback = std::move(other.m_event_callback);
106
107 other.m_window = nullptr;
108 if (m_window) {
109 glfwSetWindowUserPointer(m_window, this);
110 }
111 }
112 return *this;
113}
static void mark_window_destroyed()
Decrements the count of active GLFW windows.
WindowCreateInfo m_create_info
WindowEventCallback m_event_callback

References MayaFlux::Core::GLFWSingleton::mark_window_destroyed().

+ Here is the call graph for this function: