Struct vulkano_util::window::WindowResizeConstraints
source · [−]pub struct WindowResizeConstraints {
pub min_width: f32,
pub min_height: f32,
pub max_width: f32,
pub max_height: f32,
}
Expand description
The size limits on a window.
These values are measured in logical pixels, so the user’s scale factor does affect the size limits on the window. Please note that if the window is resizable, then when the window is maximized it may have a size outside of these limits. The functionality required to disable maximizing is not yet exposed by winit.
Fields
min_width: f32
min_height: f32
max_width: f32
max_height: f32
Implementations
sourceimpl WindowResizeConstraints
impl WindowResizeConstraints
pub fn check_constraints(&self) -> Self
Trait Implementations
sourceimpl Clone for WindowResizeConstraints
impl Clone for WindowResizeConstraints
sourcefn clone(&self) -> WindowResizeConstraints
fn clone(&self) -> WindowResizeConstraints
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WindowResizeConstraints
impl Debug for WindowResizeConstraints
sourceimpl Default for WindowResizeConstraints
impl Default for WindowResizeConstraints
impl Copy for WindowResizeConstraints
Auto Trait Implementations
impl RefUnwindSafe for WindowResizeConstraints
impl Send for WindowResizeConstraints
impl Sync for WindowResizeConstraints
impl Unpin for WindowResizeConstraints
impl UnwindSafe for WindowResizeConstraints
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more