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

◆ detach_window()

void MayaFlux::Portal::Forma::Context::detach_window ( bool  cancel_close = true)
private

Definition at line 141 of file Context.cpp.

142{
143 cancel_handlers(cancel_close);
144 m_window.reset();
145 m_hovered.reset();
146 m_focused.reset();
147 for (auto& drag : m_dragging)
148 drag.reset();
149 m_registered_keys.clear();
150 m_callbacks.clear();
151}
std::unordered_map< int, KeyHandlerState > m_registered_keys
Definition Context.hpp:353
std::optional< uint32_t > m_dragging[3]
Definition Context.hpp:382
std::shared_ptr< Core::Window > m_window
Definition Context.hpp:356
void cancel_handlers(bool cancel_close=true)
Definition Context.cpp:309
std::unordered_map< uint32_t, ElementCallbacks > m_callbacks
Definition Context.hpp:361
std::optional< uint32_t > m_hovered
Definition Context.hpp:359
std::optional< uint32_t > m_focused
Definition Context.hpp:383

References cancel_handlers(), m_callbacks, m_dragging, m_focused, m_hovered, m_registered_keys, and m_window.

Referenced by handle_close().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: