-
Notifications
You must be signed in to change notification settings - Fork 123
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
Import Masonry crate #203
Merged
Merged
Import Masonry crate #203
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* cargo +nightly clippy --fix -Z unstable-options * Cargo fmt
* simulate_input: Ctrl-A to SelectAll * Revert "simulate_input: Ctrl-A to SelectAll" * TextBox: Handle SELECT_ALL
Replace nightly builds with single beta build. Make the beta build not block CI on error. Run clippy on the beta build. Only run wasm build on a single OS. Separate out doc tests, and only run then on one platform. Download wasm-pack binary instead of building it from source. This should overall make the project use less CI cache; Github actions cache is capped at 5GB per project, whereas the previous CI used about 6GB. This meant cache entries were often evicted before they could be used.
Sometimes using commands to mutate data from ExtEventSink can be very verbose. This provides a simpler alternative.
expand the rect early in invalidate_rect and then round at every usesite of invalid
…t_monitors` (#1946)
* fix the listiter implementation Signed-off-by: Christoph <[email protected]> * reformat Signed-off-by: Christoph <[email protected]> * Update CHANGELOG.md Co-authored-by: Christoph <[email protected]> Co-authored-by: Manmeet Maan <[email protected]>
The crate name "Masonry" was already taken. Author has ceded it, but version 0.1 already exists, hence the bump. See https://old.reddit.com/r/rust/comments/10uhw4l/announcing_masonry_01_and_my_vision_for_rust_ui/j7c9krw/?context=2
Co-authored-by: WeetHet <[email protected]>
* Fix features passed in CI file * Fix compilation error on windows platforms * Run cargo fmt * Fix how piet is imported to pass down image feature * Fix clippy lints * Remove im feature from CI commands * Remove WebImage * Remove dependency on reqwest * Add hotfix to skip all render snapshots in CI * Update rust-cache version in CI
Replace tuple with a struct Adjust surrounding code to struct-like widgets
The main point of this commit is to push a new version to crates.io to see if it fixes some errors in the generated documentation.
Fix some clippy lints Update text snapshots Update documentation and examples Update roadmap Add debug properties to PaintCtx Add maybe_eq method to TextStorage as a monkey-patch --- Based on PR linebender/masonry#53 by: Shekhinah Memmel <[email protected]>
This also lets us stop building a separate version of kurbo for xilem_web.
`test-log` is used with logging to set up `env_logger` for each test and was only used in the box constraints code. This code doesn't actually use logging, so this wasn't doing much.
…]`) as classes (linebender#198) Support arrays (`impl IntoClasses for [impl IntoClasses; N]`) as classes
- Remove dependencies to Piet and druid-shell - Remove AppLauncher, AppDelegate, WinHandler, WindowDescription - Remove Command, Notification, Selector - Remove Textbox widget - Create RenderRoot, EventLoopRunner type - Update render snapshots - Update examples
For the record, this is a redo of #202. |
DJMcNab
approved these changes
Apr 22, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving again
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This commit adds the
masonry
crate as-is to the repository. It doesn't integrate Xilem with Masonry in any way.Masonry is a modular backend providing a Widget tree for GUI libraries, originally forked from the Druid project.
Previous history of this code is maintained in the original Masonry repository. Explanations for design decisions may also be found in issues from the Druid repository.