pub struct MenuStyle {Show 14 fields
pub panel_min_width: Option<Pixels>,
pub panel_max_width: Option<Pixels>,
pub panel_max_height: Option<Pixels>,
pub panel_padding: Option<Pixels>,
pub panel_gap: Option<Pixels>,
pub row_height: Option<Pixels>,
pub row_padding_x: Option<Pixels>,
pub row_padding_y: Option<Pixels>,
pub row_text_size: Option<Pixels>,
pub row_gap: Option<Pixels>,
pub row_hover_bg: Option<ComponentColor>,
pub row_hover_foreground: Option<ComponentColor>,
pub radius: Option<Pixels>,
pub animate_entry: Option<bool>,
}Expand description
Menu panel and row presentation; also inherited by submenus.
Fields§
§panel_min_width: Option<Pixels>§panel_max_width: Option<Pixels>§panel_max_height: Option<Pixels>§panel_padding: Option<Pixels>§panel_gap: Option<Pixels>§row_height: Option<Pixels>§row_padding_x: Option<Pixels>§row_padding_y: Option<Pixels>§row_text_size: Option<Pixels>§row_gap: Option<Pixels>§row_hover_bg: Option<ComponentColor>§row_hover_foreground: Option<ComponentColor>§radius: Option<Pixels>§animate_entry: Option<bool>Implementations§
Source§impl MenuStyle
impl MenuStyle
pub fn panel_min_width(self, value: impl Into<Pixels>) -> Self
pub fn panel_max_width(self, value: impl Into<Pixels>) -> Self
pub fn panel_max_height(self, value: impl Into<Pixels>) -> Self
pub fn panel_padding(self, value: impl Into<Pixels>) -> Self
pub fn panel_gap(self, value: impl Into<Pixels>) -> Self
pub fn row_height(self, value: impl Into<Pixels>) -> Self
pub fn row_padding_x(self, value: impl Into<Pixels>) -> Self
pub fn row_padding_y(self, value: impl Into<Pixels>) -> Self
pub fn row_text_size(self, value: impl Into<Pixels>) -> Self
pub fn row_gap(self, value: impl Into<Pixels>) -> Self
pub fn row_hover_bg(self, value: impl Into<ComponentColor>) -> Self
pub fn row_hover_foreground(self, value: impl Into<ComponentColor>) -> Self
pub fn radius(self, value: impl Into<Pixels>) -> Self
pub fn animate_entry(self, value: impl Into<bool>) -> Self
Trait Implementations§
Source§impl ComponentStyle for MenuStyle
impl ComponentStyle for MenuStyle
Auto Trait Implementations§
impl Freeze for MenuStyle
impl RefUnwindSafe for MenuStyle
impl Send for MenuStyle
impl Sync for MenuStyle
impl Unpin for MenuStyle
impl UnsafeUnpin for MenuStyle
impl UnwindSafe for MenuStyle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().