[][src]Struct quicksilver::lifecycle::Settings

pub struct Settings {
    pub show_cursor: bool,
    pub min_size: Option<Vector>,
    pub max_size: Option<Vector>,
    pub resize: ResizeStrategy,
    pub scale: ImageScaleStrategy,
    pub fullscreen: bool,
    pub update_rate: f64,
    pub max_updates: u32,
    pub draw_rate: f64,
    pub icon_path: Option<&'static str>,
    pub vsync: bool,
    pub multisampling: Option<u16>,
}

A builder that constructs a Window

Fields

show_cursor: bool

If the cursor should be visible over the application

min_size: Option<Vector>

The smallest size the user can resize the window to

Does nothing on web

max_size: Option<Vector>

The largest size the user can resize the window to

Does nothing on web

resize: ResizeStrategy

How content should be presented when the window is resized

scale: ImageScaleStrategy

How images should be scaled

fullscreen: bool

If the application should be fullscreen

update_rate: f64

How many milliseconds should elapse between update calls

max_updates: u32

The maximum number of updates to run in a single frame

See https://gafferongames.com/post/fix_your_timestep/ for an explanation of fixed timesteps

draw_rate: f64

How many milliseconds should elapse between draw calls

icon_path: Option<&'static str>

The icon on the window or the favicon on the tab

vsync: bool

If VSync should be enabled

Does nothing on web currently

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

Trait Implementations

impl Default for Settings[src]

impl Debug for Settings[src]

Auto Trait Implementations

Blanket Implementations

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.

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

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

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Downcast for T where
    T: Any