pub enum WindowSize {
Fixed(Size),
FitHeight(f32),
FollowHeight(f32),
FollowHeightUntilResized(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.
FollowHeight(f32)
This width, and the height of the content as it changes: the window
grows and shrinks with it. The user resizes only its width (GTK has
no such window: there it isn’t resizable). Ui::set_window_size
sets its width.
FollowHeightUntilResized(f32)
Like FollowHeight until the user, or Ui::set_window_size,
changes its height: then it’s an ordinary window.
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 IntoValue<WindowSize> for WindowSize
impl IntoValue<WindowSize> for WindowSize
fn into_value(self) -> Value<WindowSize>
Source§impl IntoValue<WindowSize> for Size
impl IntoValue<WindowSize> for Size
fn into_value(self) -> Value<WindowSize>
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