Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bump masonry, vello, and parley deps.#13

Open
xorgy wants to merge 1 commit into
rust-mobile:main from
xorgy:masonry-deps-bump
Open

Bump masonry, vello, and parley deps. #13
xorgy wants to merge 1 commit into
rust-mobile:main from
xorgy:masonry-deps-bump

Conversation

@xorgy

@xorgy xorgy commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

No description provided.

xorgy commented Oct 29, 2025

Copy link
Copy Markdown
Contributor Author

I've gone ahead and run this, the primary view demo works well but I'm not 100% sure of the Masonry demo. It seems to let me focus in and type but I'd like a second set of eyes on it.

@PoignardAzur PoignardAzur left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, aside from the layer handling.

Comment thread masonry-demo/src/lib.rs
.with_child(NewWidget::new_with_props(
Flex::row()
.with_flex_child(TextInput::new("").with_auto_id(), 1.0)
.with_child(Button::new("Add task").with_auto_id()),

@PoignardAzur PoignardAzur Oct 30, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make this code slightly more readable with Button::with_text.

xorgy reacted with thumbs up emoji
Comment thread masonry-demo/Cargo.toml

[dependencies]
android-view = { path = ".." }
masonry = { git = "https://github.com/linebender/xilem" }

@PoignardAzur PoignardAzur Oct 30, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could use the crates.io release instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't exist at that point 😉

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh and also that has to go in the ui-events 0.2.0 PR, because that's a separate set of changes.

Comment thread masonry/src/lib.rs
Comment on lines +235 to +243
RenderRootSignal::NewLayer(..) => {
// TODO
}
RenderRootSignal::RepositionLayer(..) => {
// TODO
}
RenderRootSignal::RemoveLayer(..) => {
// TODO
}

@PoignardAzur PoignardAzur Oct 30, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't know how to handle those, you should replicate the version in masonry_winit which calls RenderRoot::add_layer and the like. We should probably document this in Masonry.

xorgy reacted with thumbs up emoji

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do, thanks.

xorgy commented Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

This needs a look from somebody who is actually familiar with this stuff, because it is crashing; and crashing in a way that I am not currently set up to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@PoignardAzur PoignardAzur PoignardAzur requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /