pub struct WindowManagerSettings {
pub windows: Vec<(String, WindowSettings)>,
pub event_step_rule: Box<dyn Fn(Event) -> bool>,
pub event_step_slide_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
event_step_slide_rule: Box<dyn Fn(Event) -> bool>
What events should make the presentation go forward one slide? Default: enter
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 Freeze for WindowManagerSettings
impl !RefUnwindSafe for WindowManagerSettings
impl !Send for WindowManagerSettings
impl !Sync for WindowManagerSettings
impl Unpin for WindowManagerSettings
impl !UnwindSafe for WindowManagerSettings
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more