iced_winit/
settings.rs

1//! Configure your application.
2use crate::core;
3
4use std::borrow::Cow;
5
6/// The settings of an application.
7#[derive(Debug, Clone, Default)]
8pub struct Settings {
9    /// The identifier of the application.
10    ///
11    /// If provided, this identifier may be used to identify the application or
12    /// communicate with it through the windowing system.
13    pub id: Option<String>,
14
15    /// The fonts to load on boot.
16    pub fonts: Vec<Cow<'static, [u8]>>,
17}
18
19impl From<core::Settings> for Settings {
20    fn from(settings: core::Settings) -> Self {
21        Self {
22            id: settings.id,
23            fonts: settings.fonts,
24        }
25    }
26}