-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add methods to collapse a window #358
Comments
i'll take it |
i've got this nside@9285214 but it's overriding the state in the collapsing header. somehow the ctx is needed to retrieve the header state. how would you handle this? |
why not keep the collapsing header state in the window struct? |
|
I meant adding an |
Any updates on this? Is there any way to have a window collapsed by default at this point? |
I also would like this feature. I'm creating an editor app with lots of functionalities that shouldn't be visible right at startup. |
Fixes: emilk#358 You can open / close windows programmatically to events. See demo about. The good thing about the new API, is that it won't lock the borrowchecker (unlike open). It's maybe a good idea to considering open as deprecated.
Fixes: emilk#358 You can open / close windows programmatically to events. See demo about. The good thing about the new API, is that it won't lock the borrowchecker (unlike open). It's maybe a good idea to considering open as deprecated.
Fixes: emilk#358 You can open / close windows programmatically to events. See demo about. The good thing about the new API, is that it won't lock the borrowchecker (unlike open). It's maybe a good idea to considering open as deprecated.
Fixes: emilk#358 You can open / close windows programmatically to events. See demo about. The good thing about the new API, is that it won't lock the borrowchecker (unlike open). It's maybe a good idea to considering open as deprecated.
You can also continue, I have been busy with other projects so haven't really looked into it. But let me try if I can make an improvement (today/tomorrow). I will have to look at the code again. |
We should add two methods to
egui::Window
default_collapsed
: set whether the initial state of the window is collapsedcollapsed
: set whether the current state of the window is collapsedThe text was updated successfully, but these errors were encountered: