Skip to main content

ManagerMenuExt

Trait ManagerMenuExt 

Source
pub trait ManagerMenuExt<This>{
    // Required methods
    fn action_availability(&self, action: ManagerAction) -> ActionAvailability;
    fn cursor_can_move(&self, forward: bool) -> bool;
    fn selection_can_activate(&self) -> bool;
}
Expand description

Derives action availability from renderer-neutral manager observations.

Required Methods§

Source

fn action_availability(&self, action: ManagerAction) -> ActionAvailability

Derives whether one reusable action currently has meaning.

Source

fn cursor_can_move(&self, forward: bool) -> bool

Derives whether the current page cursor can move in one direction.

Source

fn selection_can_activate(&self) -> bool

Derives whether the current cursor position denotes an activatable value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<This> ManagerMenuExt<This> for This

Derives action availability from renderer-neutral manager observations.