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

feat(Rect): add offset method #533

Merged
merged 1 commit into from
Nov 27, 2023

Commits on Nov 27, 2023

  1. feat(Rect): add offset method

    The offset method creates a new Rect that is moved by the amount specified in the x and y direction. These values can be positive or negative. This is useful for manual layout tasks.
    
    ```rust
    let rect = area.offset(Offset { x: 10, y -10 });
    ```
    Valentin271 committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    67acc04 View commit details
    Browse the repository at this point in the history