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

◆ operator=() [2/2]

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

Definition at line 98 of file GlfwWindow.cpp.

99{
100 if (this != &other) {
101 if (m_window) {
102 glfwDestroyWindow(m_window);
104 }
105
106 m_window = other.m_window;
107 m_create_info = std::move(other.m_create_info);
108 m_state = other.m_state;
109 m_input_config = other.m_input_config;
110 m_event_callback = std::move(other.m_event_callback);
111
112 other.m_window = nullptr;
113 if (m_window) {
114 glfwSetWindowUserPointer(m_window, this);
115 }
116 }
117 return *this;
118}
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: