-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a way so a slint Window can programmatically be switched to fullscreen-mode. #6665
Comments
Make it possible to programatically to switch to full-screen mode via a new property in the Windows item. The SLINT_FULLSCREEN environment variable will default set this property to true. However settings this property in the slint code will override the SLINT_FULLSCREEN. Fixes slint-ui#6665
Are you looking for https://docs.rs/slint/latest/slint/struct.Window.html#method.set_fullscreen perhaps? |
Yes and no, I want an easy way to toggle full-screen mode from the slint code |
I'd say that this is close to "business logic", not sure if intrinsic to the design. Why not define a callback that you can implement and the toggle as needed? |
I understand your point. Yes the callback would also work. |
Make it possible to programatically to switch to full-screen mode via a new property in the Windows item. The SLINT_FULLSCREEN environment variable will default set this property to true. However settings this property in the slint code will override the SLINT_FULLSCREEN. Fixes slint-ui#6665
Make it possible to programatically to switch to full-screen mode via a new property in the Windows item. The SLINT_FULLSCREEN environment variable will default set this property to true. However settings this property in the slint code will override the SLINT_FULLSCREEN. Fixes slint-ui#6665
Implement a way so a slint Window can programmatically be switched to fullscreen-mode.
Ideally this can just be a in-out property on the Window item.
Example:
The text was updated successfully, but these errors were encountered: