Skip to content

Custom Taffy struct #316

Answered by nicoburns
DasLixou asked this question in Q&A
Jan 4, 2023 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Hi! Yes, it is indeed possible. To do this you need to implement the taffy::tree::LayoutTree trait for your storage implementation and then call taffy::compute_layout on your type. This support is still quite new and hasn't been fully tested out, so please let us know if you have any trouble making this work and/or have any requested changes to Taffy to make this easier.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@nicoburns
Comment options

@DasLixou
Comment options

@DasLixou
Comment options

@DasLixou
Comment options

@nicoburns
Comment options

Answer selected by DasLixou
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