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

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

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

pub fn key_direction(key: Key) -> Option<ListDirection>[src]

Maps a given key to a direction along the list.

Loading content...

Implementors

Loading content...