Trait nannou::ui::prelude::widget::list_select::Direction[][src]

pub trait Direction: Direction {
    fn key_direction(key: Key) -> Option<ListDirection>;
}
Expand description

A trait that extends the List Direction trait with behaviour necessary for the ListSelect widget.

Implemented for the Down, Right, Up, Left types.

Required methods

Maps a given key to a direction along the list.

Implementors