Struct unsegen::input::NavigateBehavior [−][src]
pub struct NavigateBehavior<'a, N: Navigatable + 'a> { /* fields omitted */ }
Expand description
Collection of triggers for functions of something Navigatable
implementing Behavior
.
Implementations
impl<'a, N: Navigatable + 'a> NavigateBehavior<'a, N>
[src]
impl<'a, N: Navigatable + 'a> NavigateBehavior<'a, N>
[src]pub fn new(navigatable: &'a mut N) -> Self
[src]
pub fn new(navigatable: &'a mut N) -> Self
[src]Create the behavior to act on the provided Navigatable
. Add triggers using other functions!
pub fn up_on<E: ToEvent>(self, event: E) -> Self
[src]
pub fn up_on<E: ToEvent>(self, event: E) -> Self
[src]Make the behavior trigger the move_up
function on the provided event.
A typical candidate for event
would be Key::Up
.
pub fn down_on<E: ToEvent>(self, event: E) -> Self
[src]
pub fn down_on<E: ToEvent>(self, event: E) -> Self
[src]Make the behavior trigger the move_down
function on the provided event.
A typical candidate for event
would be Key::Down
.
Trait Implementations
impl<'a, N: Navigatable + 'a> Behavior for NavigateBehavior<'a, N>
[src]
impl<'a, N: Navigatable + 'a> Behavior for NavigateBehavior<'a, N>
[src]Auto Trait Implementations
impl<'a, N> RefUnwindSafe for NavigateBehavior<'a, N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<'a, N> Send for NavigateBehavior<'a, N> where
N: Send,
N: Send,
impl<'a, N> Sync for NavigateBehavior<'a, N> where
N: Sync,
N: Sync,