mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Improve docs for ViewportCommand
This commit is contained in:
@@ -994,7 +994,12 @@ pub fn process_viewport_commands(
|
||||
let height = size.y.max(1.0);
|
||||
window.set_inner_size(LogicalSize::new(width, height));
|
||||
}
|
||||
egui::ViewportCommand::Resize(top, bottom, right, left) => {
|
||||
egui::ViewportCommand::BeginResize {
|
||||
top,
|
||||
bottom,
|
||||
right,
|
||||
left,
|
||||
} => {
|
||||
// TODO posibile return the error to `egui::Context`
|
||||
let _ = window.drag_resize_window(match (top, bottom, right, left) {
|
||||
(true, false, false, false) => ResizeDirection::North,
|
||||
|
||||
Reference in New Issue
Block a user