[][src]Struct amethyst_renderer::DisplayConfig

pub struct DisplayConfig {
    pub title: String,
    pub fullscreen: bool,
    pub dimensions: Option<(u32, u32)>,
    pub min_dimensions: Option<(u32, u32)>,
    pub max_dimensions: Option<(u32, u32)>,
    pub icon: Option<String>,
    pub loaded_icon: Option<Icon>,
    pub vsync: bool,
    pub multisampling: u16,
    pub visibility: bool,
    pub always_on_top: bool,
    pub decorations: bool,
    pub maximized: bool,
    pub multitouch: bool,
    pub resizable: bool,
    pub transparent: bool,
}

Structure for holding the renderer configuration.

Examples

Example Ron config file:

(
    title: "Game title",
    dimensions: Some((640, 480)),
    max_dimensions: None,
    min_dimensions: None,
    fullscreen: false,
    multisampling: 0,
    visibility: true,
    vsync: true,
    always_on_top: false,
    decorations: true,
    maximized: false,
    multitouch: true,
    resizable: true,
    transparent: false,
)

Fields

Name of the application window.

Enables or disables fullscreen mode.

Current window dimensions, measured in pixels (px).

Minimum window dimensions, measured in pixels (px).

Maximum window dimensions, measured in pixels (px).

Path to window icon.

Window icon. This must be set before render initialization and takes precedence over icon.

Enables or disables vertical synchronization.

Level of MSAA anti-aliasing.

Sets the visibility of the window.

Whether the window should always be on top of other windows.

Whether the window should have borders and bars.

Whether the window should be maximized upon creation.

Enable multitouch on iOS.

Whether the window is resizable or not.

Whether the the window should be transparent. If this is true, writing colors with alpha values different than 1.0 will produce a transparent window.

Methods

impl DisplayConfig
[src]

Creates a WindowBuilder using the values set in the DisplayConfig

The MonitorId is needed to configure a fullscreen window

Trait Implementations

impl Default for DisplayConfig
[src]

impl PartialEq<DisplayConfig> for DisplayConfig
[src]

impl From<WindowBuilder> for DisplayConfig
[src]

impl Clone for DisplayConfig
[src]

Performs copy-assignment from source. Read more

impl Eq for DisplayConfig
[src]

impl Debug for DisplayConfig
[src]

impl Serialize for DisplayConfig
[src]

impl<'de> Deserialize<'de> for DisplayConfig where
    DisplayConfig: Default
[src]

Auto Trait Implementations

impl Send for DisplayConfig

impl Sync for DisplayConfig

Blanket Implementations

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

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

impl<T> From for T
[src]

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

🔬 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, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> SetParameter for T

Sets value as a parameter of self.

impl<T> Erased for T

impl<T> Same for T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Any for T where
    T: Any

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> TryDefault for T where
    T: Default

Calls try_default and panics on an error case.

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> Erased for T