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

Split UI Overflow by axis #8095

Merged
merged 17 commits into from
Apr 17, 2023

Commits on Mar 15, 2023

  1. changes:

    * Split the UI overflow implementation so overflow can be set for each axis separately.
    * Added new enum `OverflowAxis` with `Hidden` and `Visible` variants.
    * Changed `Overflow` to a struct with `x` and `y` fields of type `OverflowAxis`.
    * `Overflow` has new methods `visible()` and `hidden()` that replace its previous `Hidden` and `Visible` variants.
    * Added `Overflow` helper methods `x_hidden()` and `y_hidden()` that return a new `Overflow` with the given axis hidden.
    * Added register type for `OverflowAxis`.
    * Changed the `ui` example to use `Overflow::y_hidden()` instead of `Overflow::Hidden`.
    * Modified `update_clipping` so it calculates clipping for each axis separately. If a node is only clipped on one axis, the other axis is given -/+ `f32::INFINITY` clipping bounds.
    ickshonpe committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    c3c44b7 View commit details
    Browse the repository at this point in the history
  2. changes:

    * Added `overflow_debug` example demonstrating how to use the `overflow`.
    ickshonpe committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    2fa9401 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8ef59f3 View commit details
    Browse the repository at this point in the history
  4. cargo fmt

    ickshonpe committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    c72213f View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2023

  1. Configuration menu
    Copy the full SHA
    2b1c527 View commit details
    Browse the repository at this point in the history
  2. cargo fmt

    ickshonpe committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    8653609 View commit details
    Browse the repository at this point in the history
  3. changes:

    * Added `is_visible` methods to `Overflow` and `OverflowAxis`
    * Replaced the second `match` statement in `update_clipping` with an `if` statement.
    ickshonpe committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    8284671 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. Configuration menu
    Copy the full SHA
    2a3e129 View commit details
    Browse the repository at this point in the history
  2. * Renamed overflow_debug example to overflow

    * Cargo fmt
    * Overflow example clips a bevy logo image instead of a rectangle.
    ickshonpe committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    131650d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8c65e33 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2023

  1. Configuration menu
    Copy the full SHA
    648ac48 View commit details
    Browse the repository at this point in the history
  2. changes:

    * Renamed `OverflowAxis::Hidden` to `OverflowAxis::Clip`
    * Replaced `hide`/`hidden` with `clip in the names of the functions belonging to `Overflow` and `OverflowAxis`.
    * Fixed errors in the examples.
    ickshonpe committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    44c170f View commit details
    Browse the repository at this point in the history
  3. build-templated-pages + fmt

    ickshonpe committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    cf840ce View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. Configuration menu
    Copy the full SHA
    4938380 View commit details
    Browse the repository at this point in the history
  2. cargo fmt

    ickshonpe committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    cafed54 View commit details
    Browse the repository at this point in the history
  3. build-templated-pages

    ickshonpe committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    48ef027 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e8d8fec View commit details
    Browse the repository at this point in the history