[][src]Enum sunrise_libuser::terminal::WindowSize

pub enum WindowSize {
    Fullscreen,
    FontLines(i32bool),
    Manual(i32i32u32u32),
}

Window creation requested size.

Variants

Fullscreen

Takes the full screen.

FontLines(i32bool)

Takes a given amount of lines.

The boolean controls whether we draw from the top or the bottom.

If the amount of lines is negative, then the window will take the whole screen size, minus the given amount of lines.

Manual(i32i32u32u32)

Manually position the window at the given x/y, with a given width and height.

Trait Implementations

impl Clone for WindowSize[src]

impl Copy for WindowSize[src]

impl Debug for WindowSize[src]

Auto Trait Implementations

impl RefUnwindSafe for WindowSize

impl Send for WindowSize

impl Sync for WindowSize

impl Unpin for WindowSize

impl UnwindSafe for WindowSize

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.