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 Area::constrain_to and Window::constrain_to #3396

Merged
merged 3 commits into from
Sep 27, 2023
Merged

Conversation

emilk
Copy link
Owner

@emilk emilk commented Sep 27, 2023

constrain_to takes a rect, and will constrain the area/window to that rectangle.

This acts the same as .constrain(true).drag_bounds(rect), but drag_bounds has now been deprecated.

This also fixes a bug where a Window could not be unconstrained.

@emilk emilk added bug Something is broken feature New feature or request egui labels Sep 27, 2023
@emilk emilk merged commit 1b18f8e into master Sep 27, 2023
34 checks passed
@emilk emilk deleted the emilk/constrain_to branch September 27, 2023 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken egui feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant