Skip to content

Explanation of this PR? #624

Answered by jrmoulton
test3211234 asked this question in Q&A
Oct 18, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

We use .style() on all types that impl IntoView not just tuples. Styles are how we modify most/all of the properties of views.

We still have h_stack and v_stack methods for building stacks, the difference between them is just the style though of flex_row vs flex_col which makes sense as we use taffy for layout and that is all that is required to go from a h_stack to a v_stack.

Using statics that are thread local allows us to build views and send updates to those views by their id's without needing to pass a context around in your app. Instead updates can be pushed to a static and processed by floem.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@test3211234
Comment options

@jrmoulton
Comment options

Answer selected by test3211234
@test3211234
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants