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

Scrollable widget #35

Merged
merged 23 commits into from
Nov 3, 2019
Merged

Scrollable widget #35

merged 23 commits into from
Nov 3, 2019

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Oct 29, 2019

Fixes #24.

Scrollable section in the tour example

This PR adds a Scrollable widget that can be used to show an infinite amount of content vertically with a scrollbar.

  • Scrolling can be controlled by using the mouse wheel, a touchpad, or dragging the scrollbar directly.
  • The widget event logic only needs to know when the cursor is over the scrollbar, staying renderer-agnostic.
  • A scroll example showcasing a Scrollable has been created.
  • A new Clip primitive is supported by iced_wgpu, which unlocks basic layering capabilities.

Pending work

  • Replace nalgebra dependency in iced_wgpu with something more lightweight.
  • Finish and merge wgpu_glyph scissoring support. Tracking in Debug view #38.
  • Fix text caching. glyph-brush does not allow to perform multiple draw calls without trimming the glyph cache in an easy way. Tracking in Debug view #38.
  • Update tour to contain a scrollable section.

@hecrj hecrj added the feature New feature or request label Oct 29, 2019
@hecrj hecrj added this to the 0.1.0 milestone Oct 29, 2019
@hecrj hecrj self-assigned this Oct 29, 2019
@hecrj hecrj mentioned this pull request Oct 31, 2019
@hecrj hecrj mentioned this pull request Nov 2, 2019
1 task
@hecrj hecrj mentioned this pull request Nov 3, 2019
2 tasks
@hecrj hecrj merged commit 0ea911a into master Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scrollables / Clippables
1 participant