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

Widget Operations #1399

Merged
merged 11 commits into from
Aug 5, 2022
Merged

Widget Operations #1399

merged 11 commits into from
Aug 5, 2022

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Aug 5, 2022

Depends on #1393.

This PR implements Widget Operations, as described in the RFC: iced-rs/rfcs#7.

For now, there are 4 built-in widget operations:

  • text_input::focus
  • scrollable::snap_to
  • widget::focus_next
  • widget::focus_previous

Further operations will be introduced in a case-by-case basis!

The todos example showcases how to use the focus operations, while the scrollable one uses the new snap_to operation.

@hecrj hecrj added feature New feature or request widget shell labels Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request shell widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant