[][src]Struct quicksilver::Settings

pub struct Settings {
    pub size: Vector,
    pub cursor_icon: Option<CursorIcon>,
    pub fullscreen: bool,
    pub icon_path: Option<&'static str>,
    pub multisampling: Option<u16>,
    pub vsync: bool,
    pub resizable: bool,
    pub title: &'static str,
    pub log_level: Level,
    pub use_static_dir: bool,
}

Initial window and behavior options

Fields

size: Vector

The size of the window

cursor_icon: Option<CursorIcon>

If the cursor should be visible over the application, or if the cursor should be hidden

fullscreen: bool

If the application should be fullscreen

icon_path: Option<&'static str>

The icon on the window or the favicon on the tab

multisampling: Option<u16>

How many samples to do for MSAA

By default it is None; if it is Some, it should be a non-zero power of two

Does nothing on web currently

vsync: bool

Enable or disable vertical sync

Does nothing on web

resizable: bool

If the window can be resized by the user

Does nothing on web

title: &'static str

The title of your application

log_level: Level

The severity level of logs to show

By default, it is set to Warn

use_static_dir: bool

On desktop, whether to assume the assets are in the 'static/' directory

By default, this is on for comfortable parity between stdweb and desktop. If you know you don't need that, feel free to toggle this off

Trait Implementations

impl Default for Settings[src]

impl<'_> From<&'_ Settings> for Settings[src]

impl From<Settings> for Settings[src]

Auto Trait Implementations

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, 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.