Struct ytesrev::window::WindowManagerSettings
source · pub struct WindowManagerSettings {
pub windows: Vec<(String, WindowSettings)>,
pub event_step_rule: Box<dyn Fn(Event) -> bool>,
pub quit_rule: Box<dyn Fn(Event) -> bool>,
}
Expand description
Settings for the manager in general
Fields
windows: Vec<(String, WindowSettings)>
Title and settings of each window
event_step_rule: Box<dyn Fn(Event) -> bool>
What events should make the presentation step forward? Default: The space button or mouse press
quit_rule: Box<dyn Fn(Event) -> bool>
At what event should the presentation quit? Default: On escape or the window is closed.
Auto Trait Implementations
impl !RefUnwindSafe for WindowManagerSettings
impl !Send for WindowManagerSettings
impl !Sync for WindowManagerSettings
impl Unpin for WindowManagerSettings
impl !UnwindSafe for WindowManagerSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more