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

pub trait Direction: Direction {
    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

fn key_direction(key: Key) -> Option<ListDirection>

Maps a given key to a direction along the list.

Loading content...

Implementors

impl Direction for Down[src]

impl Direction for Left[src]

impl Direction for Right[src]

impl Direction for Up[src]

Loading content...