Skip to main content

current_window

Function current_window 

Source
pub fn current_window() -> Option<WindowHandle>
Expand description

The window the caller belongs to (docs/windows.md): the one whose content is being built right now, else the focused window, else the app’s first window. What a piece uses to change “its” window (current_window()?.set_content_protected(true)) without threading a handle through. None before boot.