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

Scroll bars in EditBox and ScrollLabel; DragHandle → GripPart, update KAS-text #339

Merged
merged 19 commits into from
Jul 27, 2022

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Jul 26, 2022

  • Rename DragHandleGripPart
  • GripPart: clamp output to valid range before sending as message (partial revert)
  • Add enum GripMsg, struct ScrollMsg(pub i32)
  • Swap EditField::on_* argument order for consistency with other methods
  • Add EditBox::empty and EditField::empty constructors
  • Add a scroll bar to EditBox and ScrollLabel (vertical only, invisible for ScrollLabel, not configurable). The exact API may be adjusted in the future, but this at least adds an expected feature.
  • Add SizeMgr::scroll_bar_width since this value is needed in several places and extracting from size rules is annoying.
  • Update KAS-text — Input fixes #73 — this adds fonts::any_loaded and Text::try_prepare
  • Remove set_text_and_prepare utility; KAS-text now provides set_and_try_prepare as a replacement
  • Reduce scroll bar margin to 0

@dhardy dhardy changed the title DragHandle → GripPart; GripMsg, ScrollMsg; EditField::on_* arg order; EditBox::empty Scroll bars in EditBox and ScrollLabel; DragHandle → GripPart, update KAS-text Jul 27, 2022
@dhardy dhardy merged commit 4a95869 into master Jul 27, 2022
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