Skip to content
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

Add Collection trait #431

Merged
merged 10 commits into from
Dec 20, 2023
Merged

Add Collection trait #431

merged 10 commits into from
Dec 20, 2023

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Dec 20, 2023

Adds a trait representing a "list of widgets", e.g. Vec<W> or a struct where each field is a widget.

Adds kas::collection! to generate an anonymous implementation and instance of a Collection.

Adjusts List and Splitter widgets to use Collection; as such they no longer have the restriction that each child must have the same type.

Uses this to rewrite the Gallery's editor to use a Splitter and not use a custom widget.

@dhardy dhardy merged commit 82fde11 into master Dec 20, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant