-
On MacOS, there are methods on
Does |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I'm pretty sure that is done already by
You mean doing a lower-quality render because the user is less likely to be watching the contents of the window? Or waiting with doing layout until the resize is done? |
Beta Was this translation helpful? Give feedback.
-
For now, my use case is to show the user feedback (dynamically updating dimensions) while they are live resizing a window. But who knows in the future? People use this for a bunch of things beyond what I (or any single person) can think of. See here: https://github.com/search?q=windowwillstartliveresize&type=code. The reason to expose it is simply because macOS does and that's what cross-platform means. It means a Mac developer can adopt Is there a reason |
Beta Was this translation helpful? Give feedback.
-
cross platform means providing the same level of experience across multiple platforms. Having backend specific events could be confusing in the first place, especially when it's wrt resizing. To expose macOS's event in cross platform way, at least all desktop platforms should be investigated on how to do that and a design suggested. If you develop solely for macOS and don't want to unify stuff like that, use macOS APIs directly (with objc-2 or maybe higher level crates). |
Beta Was this translation helpful? Give feedback.
cross platform means providing the same level of experience across multiple platforms. Having backend specific events could be confusing in the first place, especially when it's wrt resizing.
To expose macOS's event in cross platform way, at least all desktop platforms should be investigated on how to do that and a design suggested.
If you develop solely for macOS and don't want to unify stuff like that, use macOS APIs directly (with objc-2 or maybe higher level crates).