Skip to main content

active

Function active 

Source
pub fn active(window: &Window) -> bool
Expand description

Whether window is fullscreen at this moment.

The button reads this every frame and labels itself for the action it would take. That matters most on a phone, where leaving fullscreen is otherwise only possible through the browser’s own chrome, which a page cannot reach.