pub struct RuntimeConfig {
pub windows: Vec<WindowSpec>,
pub tick: TickRate,
pub anim: AnimPolicy,
pub layout: LayoutPolicy,
pub tokens: Arc<Tokens>,
pub dark: bool,
pub close: ClosePolicy,
}Expand description
Runtime construction parameters (design §2.5 RuntimeConfig).
Fields§
§windows: Vec<WindowSpec>Windows to open at startup (the app can open more from
App::init).
tick: TickRateDefault repaint cadence of a window whose spec sets none.
anim: AnimPolicyAnimator durations.
layout: LayoutPolicySplitter / drag-out / expand behaviour.
tokens: Arc<Tokens>App-wide theme.
dark: boolDark theme active.
close: ClosePolicyWhat happens when the user asks to close a window.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeConfig
impl !UnwindSafe for RuntimeConfig
impl Freeze for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more