Skip to content
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

How to minimal window and resize window #644

Closed
cossonleo opened this issue Nov 30, 2020 · 2 comments · Fixed by #1019
Closed

How to minimal window and resize window #644

cossonleo opened this issue Nov 30, 2020 · 2 comments · Fixed by #1019
Labels
feature New feature or request

Comments

@cossonleo
Copy link
Contributor

How to minimal window and resize window

@hecrj hecrj added the feature New feature or request label Dec 1, 2020
@agraven
Copy link

agraven commented Dec 4, 2020

If you want to change the size of your application when you launch it, you can do so by changing the window property on the Settings struct you pass to Application::run (or Sandbox, if that's what you prefer).

If you want to change it while your application is running, you have to use the Application trait, and implement the mode function, which is expected to take a reference to your application state as argument, and return the Mode you want your application to have.

@TimUntersberger
Copy link
Contributor

@agraven sorry but how can you resize a window using the mode function? You can only change between windowed and fullscreen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
4 participants