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

Native Widget Handling #446

Closed
Osspial opened this issue Apr 3, 2018 · 1 comment
Closed

Native Widget Handling #446

Osspial opened this issue Apr 3, 2018 · 1 comment
Labels
C - needs discussion Direction must be ironed out D - hard Likely harder than most tasks here H - help wanted Someone please save us P - low Nice to have S - api Design and usability S - enhancement Wouldn't this be the coolest?

Comments

@Osspial
Copy link
Contributor

Osspial commented Apr 3, 2018

There are several OS-specific widgets that are extremely useful when creating desktop applications, which could be provided in some platform-agnostic way. This issue isn't demanding that they be implemented by winit directly, but there should be some official way to create them, either in winit itself or some associated downstream crate. How should we handle this?

Widgets that could be provided:

  • File save/open dialogs
  • Confirmation dialogs (e.g. Do you want to save before closing dialogs)
  • Menu bars
  • Right-click menus
  • Taskbar/Dock menus (the right-click menu when you click on a window's taskbar icon)

#403 #427

@francesca64
Copy link
Member

I think this is something that should definitely be handled by a separate crate. I'd put these under the broader classification of GUI primitives, which is outside of winit's scope. That's not to mention that X11 requires us to draw all of these ourselves, making it quite an undertaking (especially if we want them to look native).

As for the specifics of how to handle this, the best approach is just to start making such a library so we can get a better understanding of the problem. We'll then know what it makes sense for winit to expose (in X11's case, it's probably just a WindowBuilderExt method for setting hints).

If you'd be interested in trying to tackle this together, I should have time to work on it after the Closed API change is finished.

@francesca64 francesca64 added S - enhancement Wouldn't this be the coolest? H - help wanted Someone please save us S - api Design and usability C - needs discussion Direction must be ironed out D - hard Likely harder than most tasks here P - low Nice to have labels May 6, 2018
@Osspial Osspial closed this as completed Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C - needs discussion Direction must be ironed out D - hard Likely harder than most tasks here H - help wanted Someone please save us P - low Nice to have S - api Design and usability S - enhancement Wouldn't this be the coolest?
Development

No branches or pull requests

2 participants