Skip to content

Detecting if a window (or frame) is full screen or not? #5111

Answered by rustbasic
barries asked this question in Q&A
Discussion options

You must be logged in to vote

The method mentioned above is correct.

let fullscreen = ui.input(|i| i.viewport().fullscreen.unwrap_or(false));
let fullscreen = ui.ctx().input(|i| i.viewport().fullscreen.unwrap_or(false));
let fullscreen = ctx.input(|i| i.viewport().fullscreen.unwrap_or(false));

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by barries
Comment options

You must be logged in to vote
1 reply
@barries
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants