pub enum WindowSize {
Fixed(Size),
FitHeight(f32),
}Expand description
The content size a window opens at.
Variants§
Fixed(Size)
FitHeight(f32)
This width, and the height of the content at its first layout, so the window fits what each platform’s controls add up to. After that it’s an ordinary window: it doesn’t follow later content changes.
Trait Implementations§
Source§impl Clone for WindowSize
impl Clone for WindowSize
impl Copy for WindowSize
Source§impl Debug for WindowSize
impl Debug for WindowSize
Source§impl From<Size> for WindowSize
impl From<Size> for WindowSize
Source§fn from(size: Size) -> WindowSize
fn from(size: Size) -> WindowSize
Converts to this type from the input type.
Source§impl PartialEq for WindowSize
impl PartialEq for WindowSize
impl StructuralPartialEq for WindowSize
Auto Trait Implementations§
impl Freeze for WindowSize
impl RefUnwindSafe for WindowSize
impl Send for WindowSize
impl Sync for WindowSize
impl Unpin for WindowSize
impl UnsafeUnpin for WindowSize
impl UnwindSafe for WindowSize
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