iced-yoda/winit/src/settings.rs

26 lines
676 B
Rust
Raw Normal View History

//! Configure your application.
use crate::core::window;
2023-02-23 09:31:48 -08:00
use std::borrow::Cow;
2020-05-21 00:37:47 +02:00
/// The settings of an application.
#[derive(Debug, Clone, Default)]
pub struct Settings<Flags> {
/// The identifier of the application.
///
/// If provided, this identifier may be used to identify the application or
/// communicate with it through the windowing system.
pub id: Option<String>,
2023-11-29 22:46:47 +01:00
/// The [`window::Settings`].
pub window: window::Settings,
2019-12-29 12:29:47 +01:00
/// The data needed to initialize an [`Application`].
///
/// [`Application`]: crate::Application
pub flags: Flags,
2020-05-21 00:37:47 +02:00
/// The fonts to load on boot.
pub fonts: Vec<Cow<'static, [u8]>>,
}