-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Max window size & other size helpers (#3537)
Was a bit confused why the max_size API isn't exposed on `Window`, when it's perfectly functional in `Resize`. Anyway here's the main thing that it affects: ```rs let screen = ctx.available_rect(); let size = screen.size(); egui::Window::new(self.name()) .resizable(true) .resize(|resize| resize.max_size(size)) // Before .max_size(size) // After .show(ctx, |ui| todo!()); ``` I also added some other relevant helpers for consistency. This PR doesn't change any logic, only forwards along some helper functions that are already public for consistency.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters