pub trait BstWindowHooks {
    fn on_press<C: KeyCombo, F>(&self, combo: C, method: F) -> InputHookID
   where
        F: FnMut(InputHookTarget, &WindowState, &LocalKeyState) -> InputHookCtrl + Send + 'static
; fn on_release<C: KeyCombo, F>(&self, combo: C, method: F) -> InputHookID
   where
        F: FnMut(InputHookTarget, &WindowState, &LocalKeyState) -> InputHookCtrl + Send + 'static
; fn on_hold<C: KeyCombo, F>(&self, combo: C, method: F) -> InputHookID
   where
        F: FnMut(InputHookTarget, &LocalKeyState, Option<Duration>) -> InputHookCtrl + Send + 'static
; fn on_character<F>(&self, method: F) -> InputHookID
   where
        F: FnMut(InputHookTarget, &WindowState, Char) -> InputHookCtrl + Send + 'static
; fn on_enter<F>(&self, method: F) -> InputHookID
   where
        F: FnMut(InputHookTarget, &WindowState) -> InputHookCtrl + Send + 'static
; fn on_leave<F>(&self, method: F) -> InputHookID
   where
        F: FnMut(InputHookTarget, &WindowState) -> InputHookCtrl + Send + 'static
; fn on_focus<F>(&self, method: F) -> InputHookID
   where
        F: FnMut(InputHookTarget, &WindowState) -> InputHookCtrl + Send + 'static
; fn on_focus_lost<F>(&self, method: F) -> InputHookID
   where
        F: FnMut(InputHookTarget, &WindowState) -> InputHookCtrl + Send + 'static
; fn on_scroll<F>(&self, method: F) -> InputHookID
   where
        F: FnMut(InputHookTarget, &WindowState, f32, f32) -> InputHookCtrl + Send + 'static
; fn on_cursor<F>(&self, method: F) -> InputHookID
   where
        F: FnMut(InputHookTarget, &WindowState, &LocalCursorState) -> InputHookCtrl + Send + 'static
; }

Required Methods

Implementations on Foreign Types

Implementors