Trait embedded_menu::collection::MenuItemCollection
source · pub trait MenuItemCollection<R> {
// Required methods
fn bounds_of(&self, nth: usize) -> Rectangle;
fn title_of(&self, nth: usize) -> &str;
fn details_of(&self, nth: usize) -> &str;
fn interact_with(&mut self, nth: usize) -> R;
fn count(&self) -> usize;
fn draw_styled<C, S, IT, P, DIS>(
&self,
style: &MenuStyle<C, S, IT, P, R>,
display: &mut DIS
) -> Result<(), DIS::Error>
where C: PixelColor + From<Rgb888>,
S: IndicatorStyle,
IT: InputAdapterSource<R>,
P: SelectionIndicatorController,
DIS: DrawTarget<Color = C>;
}
Expand description
Menu-related extensions for object chain elements
Required Methods§
fn bounds_of(&self, nth: usize) -> Rectangle
fn title_of(&self, nth: usize) -> &str
fn details_of(&self, nth: usize) -> &str
fn interact_with(&mut self, nth: usize) -> R
fn count(&self) -> usize
fn draw_styled<C, S, IT, P, DIS>(
&self,
style: &MenuStyle<C, S, IT, P, R>,
display: &mut DIS
) -> Result<(), DIS::Error>where
C: PixelColor + From<Rgb888>,
S: IndicatorStyle,
IT: InputAdapterSource<R>,
P: SelectionIndicatorController,
DIS: DrawTarget<Color = C>,
Object Safety§
This trait is not object safe.