Rewrite and integrate ui
module with iced
#88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After 0.3.0 was released, different folks suggested me to build a standalone crate for the brand new
ui
module. 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
ui
module 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::width
andWindow::height
methods now return au16
. This avoids many awkward conversions in user code.Pending work
ProgressBar
andImage
widgets are merged into Icedwinit
to implementRedrawRequested
improvements: Tracking issue: Rethinking RedrawRequested rust-windowing/winit#1082