pub struct DefaultToastInputHandler;Expand description
Default implementation of ToastInputHandler
Trait Implementations§
Source§impl Clone for DefaultToastInputHandler
impl Clone for DefaultToastInputHandler
Source§fn clone(&self) -> DefaultToastInputHandler
fn clone(&self) -> DefaultToastInputHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultToastInputHandler
impl Debug for DefaultToastInputHandler
Source§impl Default for DefaultToastInputHandler
impl Default for DefaultToastInputHandler
Source§fn default() -> DefaultToastInputHandler
fn default() -> DefaultToastInputHandler
Returns the “default value” for a type. Read more
Source§impl ToastInputHandler for DefaultToastInputHandler
impl ToastInputHandler for DefaultToastInputHandler
fn calculate_stack_offset( &self, toast_index: usize, toast_height: f64, spacing: f64, ) -> f64
fn is_mouse_over(&self, mouse_pos: (f64, f64), toast_rect: &Rect) -> bool
fn is_dismiss_click( &self, mouse_pos: (f64, f64), close_button_rect: &Rect, ) -> bool
fn update_opacity_fade( &self, phase: FadePhase, elapsed_ms: u32, fade_duration_ms: u32, ) -> f64
fn calculate_position( &self, screen_size: (f64, f64), toast_size: (f64, f64), offset: (f64, f64), vertical_offset: f64, ) -> (f64, f64)
impl Copy for DefaultToastInputHandler
Auto Trait Implementations§
impl Freeze for DefaultToastInputHandler
impl RefUnwindSafe for DefaultToastInputHandler
impl Send for DefaultToastInputHandler
impl Sync for DefaultToastInputHandler
impl Unpin for DefaultToastInputHandler
impl UnsafeUnpin for DefaultToastInputHandler
impl UnwindSafe for DefaultToastInputHandler
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