Struct embedded_menu::MenuStyle
source · pub struct MenuStyle<C, S, IT, P, R>{ /* private fields */ }
Implementations§
source§impl<C, R> MenuStyle<C, Line, Programmed, StaticPosition, R>where
C: PixelColor,
impl<C, R> MenuStyle<C, Line, Programmed, StaticPosition, R>where
C: PixelColor,
source§impl<C, S, IT, P, R> MenuStyle<C, S, IT, P, R>
impl<C, S, IT, P, R> MenuStyle<C, S, IT, P, R>
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, R>where
S2: IndicatorStyle,
pub const fn with_input_adapter<IT2>(
self,
input_adapter: IT2
) -> MenuStyle<C, S, IT2, P, R>where
IT2: InputAdapterSource<R>,
pub const fn with_animated_selection_indicator( self, frames: i32 ) -> MenuStyle<C, S, IT, AnimatedPosition, R>
pub fn text_style(&self) -> MonoTextStyle<'static, C>
pub fn title_style(&self) -> MonoTextStyle<'static, C>
Trait Implementations§
source§impl<C, S, IT, P, R: Clone> Clone for MenuStyle<C, S, IT, P, R>where
C: PixelColor + Clone,
S: IndicatorStyle + Clone,
IT: InputAdapterSource<R> + Clone,
P: SelectionIndicatorController + Clone,
impl<C, S, IT, P, R: Clone> Clone for MenuStyle<C, S, IT, P, R>where
C: PixelColor + Clone,
S: IndicatorStyle + Clone,
IT: InputAdapterSource<R> + Clone,
P: SelectionIndicatorController + Clone,
source§impl<C, S, IT, P, R: Debug> Debug for MenuStyle<C, S, IT, P, R>where
C: PixelColor + Debug,
S: IndicatorStyle + Debug,
IT: InputAdapterSource<R> + Debug,
P: SelectionIndicatorController + Debug,
impl<C, S, IT, P, R: Debug> Debug for MenuStyle<C, S, IT, P, R>where
C: PixelColor + Debug,
S: IndicatorStyle + Debug,
IT: InputAdapterSource<R> + Debug,
P: SelectionIndicatorController + Debug,
source§impl<R> Default for MenuStyle<BinaryColor, Line, Programmed, StaticPosition, R>
impl<R> Default for MenuStyle<BinaryColor, Line, Programmed, StaticPosition, R>
impl<C, S, IT, P, R: Copy> Copy for MenuStyle<C, S, IT, P, R>where
C: PixelColor + Copy,
S: IndicatorStyle + Copy,
IT: InputAdapterSource<R> + Copy,
P: SelectionIndicatorController + Copy,
Auto Trait Implementations§
impl<C, S, IT, P, R> !RefUnwindSafe for MenuStyle<C, S, IT, P, R>
impl<C, S, IT, P, R> Send for MenuStyle<C, S, IT, P, R>
impl<C, S, IT, P, R> Sync for MenuStyle<C, S, IT, P, R>
impl<C, S, IT, P, R> Unpin for MenuStyle<C, S, IT, P, R>
impl<C, S, IT, P, R> !UnwindSafe for MenuStyle<C, S, IT, P, R>
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.