pub struct DefaultOverlayInputHandler;Expand description
Default implementation of OverlayInputHandler
Trait Implementations§
Source§impl Clone for DefaultOverlayInputHandler
impl Clone for DefaultOverlayInputHandler
Source§fn clone(&self) -> DefaultOverlayInputHandler
fn clone(&self) -> DefaultOverlayInputHandler
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 DefaultOverlayInputHandler
impl Debug for DefaultOverlayInputHandler
Source§impl Default for DefaultOverlayInputHandler
impl Default for DefaultOverlayInputHandler
Source§fn default() -> DefaultOverlayInputHandler
fn default() -> DefaultOverlayInputHandler
Returns the “default value” for a type. Read more
Source§impl OverlayInputHandler for DefaultOverlayInputHandler
impl OverlayInputHandler for DefaultOverlayInputHandler
fn should_show(&self, hover_duration: Duration, delay_threshold_ms: u32) -> bool
fn calculate_fade_opacity(&self, elapsed_ms: u32, fade_duration_ms: u32) -> f64
fn adjust_position_to_screen( &self, pos: (f64, f64), size: (f64, f64), screen: (f64, f64), ) -> (f64, f64)
fn calculate_tooltip_size( &self, text: &str, max_width: f64, font_size: f64, ) -> (f64, f64)
fn is_mouse_nearby( &self, mouse_pos: (f64, f64), overlay_rect: &Rect, threshold: f64, ) -> bool
impl Copy for DefaultOverlayInputHandler
Auto Trait Implementations§
impl Freeze for DefaultOverlayInputHandler
impl RefUnwindSafe for DefaultOverlayInputHandler
impl Send for DefaultOverlayInputHandler
impl Sync for DefaultOverlayInputHandler
impl Unpin for DefaultOverlayInputHandler
impl UnsafeUnpin for DefaultOverlayInputHandler
impl UnwindSafe for DefaultOverlayInputHandler
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