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

Revisions: move status tracking and Env::* to Text, ... #82

Merged
merged 23 commits into from
Mar 10, 2024
Merged

Conversation

dhardy
Copy link
Contributor

@dhardy dhardy commented Mar 6, 2024

  • All fields of Environment are moved into Text
  • Action is replaced with Status (mostly because I found the ordering of Action unintuitive)
  • Status-tracking is moved from TextDisplay to Text
  • Added Text::configure. It really only asserts that a valid FontId is used.
  • wrap: bool is replaced with wrap_width: f32, independent of the horizontal bounds used for alignment.
  • Better documentation of preparation status and usage.
  • Remove Deref, DerefMut, AsRef and AsMut impls on Text
  • fn TextApi::display replaced with unchecked_display and TextApiExt::display(&self) -> Result<&TextDisplay, NotReady>`
  • Rename crate::fonts::fonts to crate::fonts::library

This should make Text easier to use and facilitate custom variants of Text.

@dhardy dhardy merged commit d9d2a99 into master Mar 10, 2024
5 checks passed
@dhardy dhardy mentioned this pull request Dec 2, 2024
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