| Crates.io | winit-fullscreen |
| lib.rs | winit-fullscreen |
| version | 1.0.2 |
| created_at | 2021-06-17 22:09:56.324763+00 |
| updated_at | 2023-12-03 16:35:10.39475+00 |
| description | Adds a method to winit::window::Window to toggle fullscreen |
| homepage | https://github.com/Cthutu/winit-fullscreen |
| repository | https://github.com/Cthutu/winit-fullscreen |
| max_upload_size | |
| id | 411581 |
| size | 66,427 |
This is a simple crate that manages toggling of fullscreen in a winit-based
application. Given a borrowed immutable reference to your
winit::window::Window instance, you can call:
window.toggle_fullscreen();
If your window is not fullscreen, it will be now, otherwise the reverse will be true.
I found the fullscreen interface difficult to remember, the documentation lacking and there are some complexities involving different platforms (some do not support full exclusive mode, for example). So I decided to wrap up the functionality under a simple, argumentless, single function.
I am happy to contribute this back into the Winit crate if there is interest.
Please post any issues or ideas on the GitHub site on https://github.com/Cthutu/winit-fullscreen.
Written by Matt Davies, copyright ©2021, all rights reserved.