[][src]Struct fae::window::WindowSettings

pub struct WindowSettings {
    pub title: String,
    pub width: f32,
    pub height: f32,
    pub is_dialog: bool,
    pub vsync: bool,
}

Defines a window.

Fields

title: String

Title of the window. Default value: Name of the executable file

width: f32

Width of the window in logical pixels. Default value: 640.0

height: f32

Height of the window in logical pixels. Default value: 480.0

is_dialog: bool

Whether or not the application is a dialog. Default value: true

This only affects x11 environments with the glutin backend, where it sets the window type to dialog. In tiling environments, like i3 and sway, this can cause the window to pop up as a floating window, not a tiled one. This is useful for applications that are supposed to be opened for very short amounts of time.

vsync: bool

This should always be true for everything except benchmarks.

Trait Implementations

impl Default for WindowSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.