#pragma once // Spec: INV-social 12.1 (scenePhase onChange). The desktop equivalent of the scene phase is the SDL window focus: // gained = .active, lost = inactive/background. Events are marshalled to the UI thread through UiQueue. #include namespace dp { class WindowFocusWatcher { public: using Handler = std::function; explicit WindowFocusWatcher(Handler handler); ~WindowFocusWatcher(); WindowFocusWatcher(const WindowFocusWatcher&) = delete; WindowFocusWatcher& operator=(const WindowFocusWatcher&) = delete; struct State; private: State* state_; }; } // namespace dp