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 UiRect::px() and UiRect::percent() utils #8866

Merged
merged 2 commits into from
Jun 19, 2023

Commits on Jun 17, 2023

  1. Add UiRect::px() and UiRect::percent() utils

    Add two utility methods to make manipulating `UiRect` from code more
    concise:
    - `UiRect::px()` create a new `UiRect` like the `new()` function, but
      with values in logical pixels directly.
    - `UiRect::percent()` is similar, with values as percentages.
    
    This saves a lot of typing and makes UI code more compact while
    retaining readability.
    djeedai committed Jun 17, 2023
    Configuration menu
    Copy the full SHA
    cccf7a5 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2023

  1. Fix typo in docs

    djeedai committed Jun 18, 2023
    Configuration menu
    Copy the full SHA
    9611080 View commit details
    Browse the repository at this point in the history