Struct embedded_menu::MenuStyle
source · pub struct MenuStyle<C, S, IT, P>where
C: PixelColor,
S: IndicatorStyle,
IT: InteractionController,
P: SelectionIndicatorController,{ /* private fields */ }
Implementations§
source§impl<C> MenuStyle<C, LineIndicator, Programmed, StaticPosition>where
C: PixelColor,
impl<C> MenuStyle<C, LineIndicator, Programmed, StaticPosition>where C: PixelColor,
source§impl<C, S, IT, P> MenuStyle<C, S, IT, P>where
C: PixelColor,
S: IndicatorStyle,
IT: InteractionController,
P: SelectionIndicatorController,
impl<C, S, IT, P> MenuStyle<C, S, IT, P>where C: PixelColor, S: IndicatorStyle, IT: InteractionController, P: SelectionIndicatorController,
pub const fn with_font(self, font: &'static MonoFont<'static>) -> Self
pub const fn with_title_font( self, title_font: &'static MonoFont<'static> ) -> Self
pub const fn with_scrollbar_style(self, scrollbar: DisplayScrollbar) -> Self
pub const fn with_details_delay(self, frames: u16) -> Self
pub const fn with_selection_indicator<S2>( self, indicator_style: S2 ) -> MenuStyle<C, S2, IT, P>where S2: IndicatorStyle,
pub const fn with_interaction_controller<IT2>( self, interaction: IT2 ) -> MenuStyle<C, S, IT2, P>where IT2: InteractionController,
pub const fn with_animated_selection_indicator( &self, frames: i32 ) -> MenuStyle<C, S, IT, AnimatedPosition>
pub fn text_style(&self) -> MonoTextStyle<'static, C>
pub fn title_style(&self) -> MonoTextStyle<'static, C>
Trait Implementations§
source§impl<C, S, IT, P> Clone for MenuStyle<C, S, IT, P>where
C: PixelColor + Clone,
S: IndicatorStyle + Clone,
IT: InteractionController + Clone,
P: SelectionIndicatorController + Clone,
impl<C, S, IT, P> Clone for MenuStyle<C, S, IT, P>where C: PixelColor + Clone, S: IndicatorStyle + Clone, IT: InteractionController + Clone, P: SelectionIndicatorController + Clone,
source§impl<C, S, IT, P> Debug for MenuStyle<C, S, IT, P>where
C: PixelColor + Debug,
S: IndicatorStyle + Debug,
IT: InteractionController + Debug,
P: SelectionIndicatorController + Debug,
impl<C, S, IT, P> Debug for MenuStyle<C, S, IT, P>where C: PixelColor + Debug, S: IndicatorStyle + Debug, IT: InteractionController + Debug, P: SelectionIndicatorController + Debug,
source§impl Default for MenuStyle<BinaryColor, LineIndicator, Programmed, StaticPosition>
impl Default for MenuStyle<BinaryColor, LineIndicator, Programmed, StaticPosition>
source§impl<C, S, V, IT, P> StyledDrawable<MenuStyle<C, S, IT, P>> for Chain<V>where
C: PixelColor,
V: StyledMenuItem<C, S, IT, P>,
S: IndicatorStyle,
IT: InteractionController,
P: SelectionIndicatorController,
impl<C, S, V, IT, P> StyledDrawable<MenuStyle<C, S, IT, P>> for Chain<V>where C: PixelColor, V: StyledMenuItem<C, S, IT, P>, S: IndicatorStyle, IT: InteractionController, P: SelectionIndicatorController,
source§impl<C, S, V, VC, IT, P> StyledDrawable<MenuStyle<C, S, IT, P>> for Link<V, VC>where
C: PixelColor,
V: StyledMenuItem<C, S, IT, P>,
VC: ChainElement + StyledMenuItem<C, S, IT, P>,
S: IndicatorStyle,
IT: InteractionController,
P: SelectionIndicatorController,
impl<C, S, V, VC, IT, P> StyledDrawable<MenuStyle<C, S, IT, P>> for Link<V, VC>where C: PixelColor, V: StyledMenuItem<C, S, IT, P>, VC: ChainElement + StyledMenuItem<C, S, IT, P>, S: IndicatorStyle, IT: InteractionController, P: SelectionIndicatorController,
source§impl<C, S, I, IT, P> StyledDrawable<MenuStyle<C, S, IT, P>> for MenuLine<I>where
C: PixelColor + From<Rgb888>,
I: MenuItem,
S: IndicatorStyle,
IT: InteractionController,
P: SelectionIndicatorController,
impl<C, S, I, IT, P> StyledDrawable<MenuStyle<C, S, IT, P>> for MenuLine<I>where C: PixelColor + From<Rgb888>, I: MenuItem, S: IndicatorStyle, IT: InteractionController, P: SelectionIndicatorController,
impl<C, S, IT, P> Copy for MenuStyle<C, S, IT, P>where C: PixelColor + Copy, S: IndicatorStyle + Copy, IT: InteractionController + Copy, P: SelectionIndicatorController + Copy,
Auto Trait Implementations§
impl<C, S, IT, P> !RefUnwindSafe for MenuStyle<C, S, IT, P>
impl<C, S, IT, P> Send for MenuStyle<C, S, IT, P>where C: Send, IT: Send, P: Send, S: Send,
impl<C, S, IT, P> Sync for MenuStyle<C, S, IT, P>where C: Sync, IT: Sync, P: Sync, S: Sync,
impl<C, S, IT, P> Unpin for MenuStyle<C, S, IT, P>where C: Unpin, IT: Unpin, P: Unpin, S: Unpin,
impl<C, S, IT, P> !UnwindSafe for MenuStyle<C, S, IT, P>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.