pub fn reset_scrollbar_fade<F>(&mut self, request_timer: F, env: &Env)
    where
        F: FnOnce(Duration) -> TimerToken,
    {
        self.opacity = env.get(theme::SCROLLBAR_MAX_OPACITY);
        let fade_delay = env.get(theme::SCROLLBAR_FADE_DELAY);
        let deadline = Duration::from_millis(fade_delay);
        self.timer_id = request_timer(deadline);
    }
/// Makes the scrollbars visible, and resets the fade timer.
Makes the scrollbars visible, and resets the fade timer.
Makes the scrollbars visible and resets the fade timer .
pub fn reset_scrollbar_fade<F>(&mut self, request_timer: F, env: &Env)
    where
        F: FnOnce(Duration) -> TimerToken,
    {
        self.opacity = env.get(theme::SCROLLBAR_MAX_OPACITY);
        let fade_delay = env.get(theme::SCROLLBAR_FADE_DELAY);
        let deadline = Duration::from_millis(fade_delay);
        self.timer_id = request_timer(deadline);
    }
pub fn reset_scrollbar_fade < F > ( & mut self , request_timer : F , env : & Env ) where F : FnOnce ( Duration ) -> TimerToken , { self . opacity = env . get ( theme :: SCROLLBAR_MAX_OPACITY ) ; let fade_delay = env . get ( theme :: SCROLLBAR_FADE_DELAY ) ; let deadline = Duration :: from_millis ( fade_delay ) ; self . timer_id = request_timer ( deadline ) ; }
Makes the scrollbars visible, and resets the fade timer.
Makes the scrollbars visible and resets the fade timer .
&mut self
request_timer
F
env
&Env
&mut self
request_timer
F
env
&Env