pub trait OverlayInputHandler {
// Provided methods
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 { ... }
}Expand description
Input handler adapter for overlay events