pub struct MinMaxInfo { /* private fields */ }
Implementations§
Source§impl MinMaxInfo
impl MinMaxInfo
Sourcepub fn set_maximized_size(&self, width: i32, height: i32)
pub fn set_maximized_size(&self, width: i32, height: i32)
The maximized width and the maximized height of the window. For top-level windows, this value is based on the width of the primary monitor.
Sourcepub fn maximized_size(&self) -> [i32; 2]
pub fn maximized_size(&self) -> [i32; 2]
Returns the maximized width and the maximized height of the window. For top-level windows, this value is based on the width of the primary monitor.
Sourcepub fn set_maximized_pos(&self, x: i32, y: i32)
pub fn set_maximized_pos(&self, x: i32, y: i32)
Sets the position of the left side of the maximized window and the position of the top of the maximized window. For top-level windows, this value is based on the position of the primary monitor.
Sourcepub fn maximized_pos(&self) -> [i32; 2]
pub fn maximized_pos(&self) -> [i32; 2]
Returns the position of the left side of the maximized window and the position of the top of the maximized window. For top-level windows, this value is based on the position of the primary monitor.
Sourcepub fn set_max_size(&self, width: i32, height: i32)
pub fn set_max_size(&self, width: i32, height: i32)
Sets the maximum size of the window
Sourcepub fn set_min_size(&self, width: i32, height: i32)
pub fn set_min_size(&self, width: i32, height: i32)
Sets the maximum size of the window
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MinMaxInfo
impl RefUnwindSafe for MinMaxInfo
impl !Send for MinMaxInfo
impl !Sync for MinMaxInfo
impl Unpin for MinMaxInfo
impl UnwindSafe for MinMaxInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more