pub struct WindowSizeConstraints {
pub min_width: Option<PixelUnit>,
pub min_height: Option<PixelUnit>,
pub max_width: Option<PixelUnit>,
pub max_height: Option<PixelUnit>,
}
Expand description
Window size constraints
Fields§
§min_width: Option<PixelUnit>
The minimum width a window can be, If this is None
, the window will have no minimum width.
The default is None
.
min_height: Option<PixelUnit>
The minimum height a window can be, If this is None
, the window will have no minimum height.
The default is None
.
max_width: Option<PixelUnit>
The maximum width a window can be, If this is None
, the window will have no maximum width.
The default is None
.
max_height: Option<PixelUnit>
The maximum height a window can be, If this is None
, the window will have no maximum height.
The default is None
.
Trait Implementations§
Source§impl Clone for WindowSizeConstraints
impl Clone for WindowSizeConstraints
Source§fn clone(&self) -> WindowSizeConstraints
fn clone(&self) -> WindowSizeConstraints
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WindowSizeConstraints
impl Debug for WindowSizeConstraints
Source§impl Default for WindowSizeConstraints
impl Default for WindowSizeConstraints
Source§fn default() -> WindowSizeConstraints
fn default() -> WindowSizeConstraints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WindowSizeConstraints
impl<'de> Deserialize<'de> for WindowSizeConstraints
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WindowSizeConstraints
impl PartialEq for WindowSizeConstraints
Source§impl Serialize for WindowSizeConstraints
impl Serialize for WindowSizeConstraints
impl Copy for WindowSizeConstraints
impl StructuralPartialEq for WindowSizeConstraints
Auto Trait Implementations§
impl Freeze for WindowSizeConstraints
impl RefUnwindSafe for WindowSizeConstraints
impl Send for WindowSizeConstraints
impl Sync for WindowSizeConstraints
impl Unpin for WindowSizeConstraints
impl UnwindSafe for WindowSizeConstraints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)