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 an enum with only the numeric variants of Val #7569

Closed
wants to merge 7 commits into from

Commits on Feb 8, 2023

  1. changes:

            Added a type `Breadth`, that is similar to `Val` but with only evaluatable variants.
            Gave UiRect a type parameter, so it can take `Breadth` or `Val` values.
            Added tests for `Breadth` and `UiRect`.
            Changed style properties to use `Breadth` instead of `Val` for the padding and border properties.
            Changed `bevy_ui::flex::convert::from_rect` to take an `UiRect<T: Into<Val>>` instead of a `UiRect`.
            Made minimal necessary changes to the examples.
    ickshonpe committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    684b32a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b2c93b View commit details
    Browse the repository at this point in the history
  3. impl From<UiRect<Breadth> for <UiRect<Val> and use it to convert the …

    …padding and border values in `bevy_ui::flex::convert::from_style`
    ickshonpe committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    9597f15 View commit details
    Browse the repository at this point in the history
  4. cargo fmt --all

    ickshonpe committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    7d02b25 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. Configuration menu
    Copy the full SHA
    7ef9ca4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    087fc9e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d558224 View commit details
    Browse the repository at this point in the history