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 safe area and document coordinate systems #3890

Open
wants to merge 38 commits into
base: master
Choose a base branch
from

Commits on Sep 10, 2024

  1. Add safe area and document coordinate systems

    Added `Window::safe_area`, which describes the area of the surface that
    is unobstructed by notches, bezels etc. The drawing code in the examples
    have been updated to draw a star inside the safe area, and the plain
    background outside of it.
    
    Also renamed `Window::inner_position` to `Window::surface_position`, and
    changed it to from screen coordinates to window coordinates, to better
    align how these coordinate systems work together.
    
    Finally, added some SVG images and documentation to describe how all of
    this works.
    madsmtm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    98a9914 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    335a1c6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3cd2fa6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9bcd3ff View commit details
    Browse the repository at this point in the history
  5. Use possibly negative values for surface position

    Dunno, I can imagine that it will happen on some platforms
    madsmtm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    bec2ed1 View commit details
    Browse the repository at this point in the history
  6. Fix safe_area on macOS < 11

    madsmtm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    81c92eb View commit details
    Browse the repository at this point in the history
  7. Fix outer_size on iOS

    madsmtm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    d5d8e30 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b1fee88 View commit details
    Browse the repository at this point in the history
  9. Fix doc link

    madsmtm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    5df9eb8 View commit details
    Browse the repository at this point in the history
  10. Fix SurfaceResized on iOS

    madsmtm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    da7942e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9f080a5 View commit details
    Browse the repository at this point in the history
  12. Properly set up typos check

    madsmtm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    bc12e13 View commit details
    Browse the repository at this point in the history
  13. Add Android, Orbital, Web, Windows, Wayland and X11 implementations

    Very bare-bones, probably not correct
    madsmtm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    287fd8d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    ba76cc6 View commit details
    Browse the repository at this point in the history
  15. Fix clippy warning on Windows

    madsmtm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    8561d3b View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    feb686a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e878c59 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    c7523d4 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Configuration menu
    Copy the full SHA
    01552d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    45326fb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c651490 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c1ea82a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    39f40c7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    131eaa1 View commit details
    Browse the repository at this point in the history
  7. macOS: Guarantee that SurfaceResized is emitted on safe area change

    To support on Alacritty
    madsmtm committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    62a95a5 View commit details
    Browse the repository at this point in the history
  8. Don't mention Alacritty

    madsmtm committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    3b3928e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    992778a View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Implement Web

    daxpedda committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    1ffa29b View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. Improve rustfmt note

    madsmtm committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    025bb67 View commit details
    Browse the repository at this point in the history
  2. doc function

    madsmtm committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    2caf761 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a4c51c View commit details
    Browse the repository at this point in the history
  4. Add inset types

    madsmtm committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    51269ce View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    12f3666 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    00fe76e View commit details
    Browse the repository at this point in the history
  7. Fix web

    madsmtm committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    c288aeb View commit details
    Browse the repository at this point in the history
  8. Remove test code

    madsmtm committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    566b790 View commit details
    Browse the repository at this point in the history
  9. Update mobile diagram

    madsmtm committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    8143515 View commit details
    Browse the repository at this point in the history
  10. Fix broken doc

    madsmtm committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    773b002 View commit details
    Browse the repository at this point in the history