-
Notifications
You must be signed in to change notification settings - Fork 124
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
Support transforms for each widget #753
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3136ecb
Initial dirty hack to get transforms per widget working
Philipp-M 1606302
Handle pointer-events correctly, with a BVH (hieararchy is the widget…
Philipp-M fd8cba1
Fix Text pointer events in `TextArea` when a transform is applied.
Philipp-M 61a0b13
Remove unused code
Philipp-M 7f0b1a7
Make find_widget_at_pos behavior more correct
Philipp-M e9d09b7
Fix stack overflow in tests
Philipp-M 8b6f311
Fix `get_ime_area()`
Philipp-M 151d0b8
Replace `window_layout_rect` with `bbox` (and thus fix accessibility).
Philipp-M e2ad4de
Rename bbox to bounding_rect as it's more appropriate in 2D space
Philipp-M 045af4d
Revert unnecessary changes
Philipp-M d8126e3
Factor the widgets transform out of the widget trait to the widget st…
Philipp-M e73c9ce
Move `Transformable` trait below the view modules, and add basic docu…
Philipp-M 4b4969e
xilem: Wire up all views with transforms
Philipp-M 90ae403
Fix clippy lints
Philipp-M 961caf8
* Rename translation to scroll translation
Philipp-M a715a43
Refactor
Philipp-M 506b178
Merge branch 'main' into transforms
Philipp-M 4cbfc65
Fix clippy lint (`OneOf` -> `Self`)
Philipp-M 4945288
Add transforms example and expose `masonry::{Affine, Vec2}` in Xilem
Philipp-M fecb99b
Merge branch 'main' into transforms
Philipp-M 0ea14ad
Minimal improvements to the transforms example
Philipp-M a6e67b1
Add basic tests for transforms
Philipp-M deca314
Restore http_cats example without transforms
Philipp-M 7b99baa
Add comments and handle paint_insets with the bounding_rect
Philipp-M bdd4bb5
Handle accesskit transforms
Philipp-M 2478870
Revert mason example animated transform hacks
Philipp-M 535bb50
Merge branch 'main' into transforms
Philipp-M 5d1b0ef
Remove merge artifacts
Philipp-M 98976b7
Add doc-comment to `local_position`
Philipp-M File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# LFS settings | ||
# If changing, also change in .github/workflows/ci.yml | ||
masonry/src/widget/screenshots/*.png filter=lfs diff=lfs merge=lfs -text | ||
masonry/src/**/screenshots/*.png filter=lfs diff=lfs merge=lfs -text |
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
I don't think this is correct. This should be the "layout" rect, not the bounding rect.
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.
Hmm, reading the docs of accesskit, I think there's more to it, as the node can be transformed. I've pushed (untested) code how I think it needs to be handled according to the docs, I currently don't have a setup to quickly evaluate this. Maybe you can check again? I'm not sure though whether the scroll translation should be applied though...