Trait basalt::window::BstWindowHooks
source · [−]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
sourcefn on_press<C: KeyCombo, F>(&self, combo: C, method: F) -> InputHookIDwhere
fn on_press<C: KeyCombo, F>(&self, combo: C, method: F) -> InputHookIDwhere
F: FnMut(InputHookTarget, &WindowState, &LocalKeyState) -> InputHookCtrl + Send + 'static,
sourcefn on_release<C: KeyCombo, F>(&self, combo: C, method: F) -> InputHookIDwhere
fn on_release<C: KeyCombo, F>(&self, combo: C, method: F) -> InputHookIDwhere
F: FnMut(InputHookTarget, &WindowState, &LocalKeyState) -> InputHookCtrl + Send + 'static,
sourcefn on_hold<C: KeyCombo, F>(&self, combo: C, method: F) -> InputHookIDwhere
fn on_hold<C: KeyCombo, F>(&self, combo: C, method: F) -> InputHookIDwhere
F: FnMut(InputHookTarget, &LocalKeyState, Option<Duration>) -> InputHookCtrl + Send + 'static,
sourcefn on_character<F>(&self, method: F) -> InputHookIDwhere
fn on_character<F>(&self, method: F) -> InputHookIDwhere
F: FnMut(InputHookTarget, &WindowState, Char) -> InputHookCtrl + Send + 'static,
sourcefn on_enter<F>(&self, method: F) -> InputHookIDwhere
fn on_enter<F>(&self, method: F) -> InputHookIDwhere
F: FnMut(InputHookTarget, &WindowState) -> InputHookCtrl + Send + 'static,
sourcefn on_leave<F>(&self, method: F) -> InputHookIDwhere
fn on_leave<F>(&self, method: F) -> InputHookIDwhere
F: FnMut(InputHookTarget, &WindowState) -> InputHookCtrl + Send + 'static,
sourcefn on_focus<F>(&self, method: F) -> InputHookIDwhere
fn on_focus<F>(&self, method: F) -> InputHookIDwhere
F: FnMut(InputHookTarget, &WindowState) -> InputHookCtrl + Send + 'static,
sourcefn on_focus_lost<F>(&self, method: F) -> InputHookIDwhere
fn on_focus_lost<F>(&self, method: F) -> InputHookIDwhere
F: FnMut(InputHookTarget, &WindowState) -> InputHookCtrl + Send + 'static,
sourcefn on_scroll<F>(&self, method: F) -> InputHookIDwhere
fn on_scroll<F>(&self, method: F) -> InputHookIDwhere
F: FnMut(InputHookTarget, &WindowState, f32, f32) -> InputHookCtrl + Send + 'static,
sourcefn on_cursor<F>(&self, method: F) -> InputHookIDwhere