pub struct InputHookBuilder<'a> { /* private fields */ }
Expand description
The main builder for Input
.
Implementations
sourceimpl<'a> InputHookBuilder<'a>
impl<'a> InputHookBuilder<'a>
sourcepub fn window(self, window: &Arc<dyn BasaltWindow>) -> Self
pub fn window(self, window: &Arc<dyn BasaltWindow>) -> Self
Attach hook to a Bin
sourcepub fn on_press(self) -> InputPressBuilder<'a>
pub fn on_press(self) -> InputPressBuilder<'a>
Attach hook to a press event.
Requires a proceeding call to either window
or bin
.
sourcepub fn on_hold(self) -> InputHoldBuilder<'a>
pub fn on_hold(self) -> InputHoldBuilder<'a>
Attach hook to a hold event.
Requires a proceeding call to either window
or bin
.
sourcepub fn on_release(self) -> InputPressBuilder<'a>
pub fn on_release(self) -> InputPressBuilder<'a>
Attach hook to a release event.
Requires a proceeding call to either window
or bin
.
sourcepub fn on_character(self) -> InputCharacterBuilder<'a>
pub fn on_character(self) -> InputCharacterBuilder<'a>
Attach hook to a character event.
Requires a proceeding call to either window
or bin
.
sourcepub fn on_enter(self) -> InputEnterBuilder<'a>
pub fn on_enter(self) -> InputEnterBuilder<'a>
Attach hook to a cursor enter event.
Requires a proceeding call to either window
or bin
.
sourcepub fn on_leave(self) -> InputEnterBuilder<'a>
pub fn on_leave(self) -> InputEnterBuilder<'a>
Attach hook to a cursor leave event.
Requires a proceeding call to either window
or bin
.
sourcepub fn on_focus(self) -> InputFocusBuilder<'a>
pub fn on_focus(self) -> InputFocusBuilder<'a>
Attach hook to a focus event.
Requires a proceeding call to either window
or bin
.
sourcepub fn on_focus_lost(self) -> InputFocusBuilder<'a>
pub fn on_focus_lost(self) -> InputFocusBuilder<'a>
Attach hook to a focus lost event.
Requires a proceeding call to either window
or bin
.
sourcepub fn on_scroll(self) -> InputScrollBuilder<'a>
pub fn on_scroll(self) -> InputScrollBuilder<'a>
Attach hook to a scroll event.
Requires a proceeding call to either window
or bin
.
sourcepub fn on_cursor(self) -> InputCursorBuilder<'a>
pub fn on_cursor(self) -> InputCursorBuilder<'a>
Attach hook to a cursor move event.
Requires a proceeding call to either window
or bin
.
sourcepub fn on_motion(self) -> InputMotionBuilder<'a>
pub fn on_motion(self) -> InputMotionBuilder<'a>
Attach hook to a mouse motion event.