pub struct Settings {
pub id: Option<String>,
pub fonts: Vec<Cow<'static, [u8]>>,
pub default_font: Font,
pub default_text_size: Pixels,
pub backend: Backend,
pub antialiasing: bool,
pub vsync: bool,
}Expand description
The settings of an iced program.
Fields§
§id: Option<String>The identifier of the application.
If provided, this identifier may be used to identify the application or communicate with it through the windowing system.
fonts: Vec<Cow<'static, [u8]>>The fonts to load on boot.
default_font: FontThe default Font to be used.
By default, it uses Family::SansSerif.
default_text_size: PixelsThe text size that will be used by default.
The default value is 16.0.
backend: BackendThe graphical backend to use.
It defaults to Backend::Best.
antialiasing: boolIf 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 widget, at a performance cost.
By default, it is enabled.
vsync: boolWhether or not to attempt to synchronize rendering when possible.
Disabling it can improve rendering performance on some platforms.
By default, it is enabled.