Struct iced::settings::Settings[][src]

pub struct Settings<Flags> {
    pub window: Settings,
    pub flags: Flags,
    pub default_font: Option<&'static [u8]>,
    pub default_text_size: u16,
    pub exit_on_close_request: bool,
    pub antialiasing: bool,
}

The settings of an application.

Fields

window: Settings

The window settings.

They will be ignored on the Web.

flags: Flags

The data needed to initialize an Application.

default_font: Option<&'static [u8]>

The bytes of the font that will be used by default.

If None is provided, a default system font will be chosen.

default_text_size: u16

The text size that will be used by default.

The default value is 20.

exit_on_close_request: bool

Whether the [Application] should exit when the user requests the window to close (e.g. the user presses the close button).

antialiasing: bool

If set to true, the renderer will try to perform antialiasing for some primitives.

Enabling it can produce a smoother result in some widgets, like the Canvas, at a performance cost.

By default, it is disabled.

Implementations

impl<Flags> Settings<Flags>[src]

pub fn with_flags(flags: Flags) -> Self[src]

Initialize Application settings using the given data.

Trait Implementations

impl<Flags: Clone> Clone for Settings<Flags>[src]

impl<Flags: Debug> Debug for Settings<Flags>[src]

impl<Flags> Default for Settings<Flags> where
    Flags: Default
[src]

Auto Trait Implementations

impl<Flags> RefUnwindSafe for Settings<Flags> where
    Flags: RefUnwindSafe

impl<Flags> Send for Settings<Flags> where
    Flags: Send

impl<Flags> Sync for Settings<Flags> where
    Flags: Sync

impl<Flags> Unpin for Settings<Flags> where
    Flags: Unpin

impl<Flags> UnwindSafe for Settings<Flags> where
    Flags: UnwindSafe

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> Downcast<T> for T

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,