Rewrite and integrate ui module with iced#88
Conversation
|
Hey @hecrj, Coffee and Iced are two awesome projects, kudos to you. Is there any chance of saving/reviving this PR, to get Iced integrated into Coffee? I started playing around with ggez as an experiment to build game mods using Wasm. I'm at a point where I want to mods to be able to build/draw widgets, but would like to use an existing Widget library for this. Iced looks like the best candidate, and since I'm only using a small subset of ggez, a natural transition would be to use Coffee as well. I found this PR which made me realize that Iced isn't integrated with Coffee yet. It does look like the Coffee by itself looks like a nice, modern, simple engine for me to use, so I'm going to probably use it instead of ggez regardless, but having Iced integrated would definitely be... icing on the cake. |
|
I totally agree, this rewrite of |
After 0.3.0 was released, different folks suggested me to build a standalone crate for the brand new
uimodule. I thought it was a really good idea. If folks use it, it would allow for cooperation between different game engines and UI applications to build better GUIs using Rust!And so, Iced is here! A 2D renderer-agnostic GUI library focused on simplicity and type-safety. There is a long road ahead, but it is already usable!
This PR rewrites the
uimodule to integrate it with the upcoming first release of Icedwhile avoiding breaking changes. No examples were broken during this process!Depends on #62.
Changed
Window::widthandWindow::heightmethods now return au16. This avoids many awkward conversions in user code.Pending work
ProgressBarandImagewidgets are merged into Icedwinitto implementRedrawRequestedimprovements: Tracking issue: Rethinking RedrawRequested rust-windowing/winit#1082