#[non_exhaustive]pub struct SelectStyle {Show 13 fields
pub variant: Option<FieldVariant>,
pub height: Option<Pixels>,
pub padding_x: Option<Pixels>,
pub padding_y: Option<Pixels>,
pub trigger_text_size: 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 panel_padding: Option<Pixels>,
pub radius: Option<Pixels>,
pub row_hover_bg: Option<ComponentColor>,
pub is_bare: Option<bool>,
}Expand description
Select trigger and detached option-panel presentation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.variant: Option<FieldVariant>§height: Option<Pixels>§padding_x: Option<Pixels>§padding_y: Option<Pixels>Vertical padding on the trigger, in place of v3’s py-2.
The trigger is min-h based, so a single-line value keeps the
resolved height (36px of line-height: 20px plus 8px each side)
while a value that wraps to two lines grows the trigger the way
upstream’s py-2 does. Unset leaves the trigger unpadded, which is
the pre-0.10.0 geometry.
trigger_text_size: Option<Pixels>§row_height: Option<Pixels>§row_padding_x: Option<Pixels>§row_padding_y: Option<Pixels>§row_text_size: Option<Pixels>§panel_padding: Option<Pixels>§radius: Option<Pixels>§row_hover_bg: Option<ComponentColor>§is_bare: Option<bool>Implementations§
Source§impl SelectStyle
impl SelectStyle
pub fn variant(self, value: impl Into<FieldVariant>) -> Self
pub fn height(self, value: impl Into<Pixels>) -> Self
pub fn padding_x(self, value: impl Into<Pixels>) -> Self
Sourcepub fn padding_y(self, value: impl Into<Pixels>) -> Self
pub fn padding_y(self, value: impl Into<Pixels>) -> Self
Vertical padding on the trigger, in place of v3’s py-2.
The trigger is min-h based, so a single-line value keeps the
resolved height (36px of line-height: 20px plus 8px each side)
while a value that wraps to two lines grows the trigger the way
upstream’s py-2 does. Unset leaves the trigger unpadded, which is
the pre-0.10.0 geometry.
pub fn trigger_text_size(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 panel_padding(self, value: impl Into<Pixels>) -> Self
pub fn radius(self, value: impl Into<Pixels>) -> Self
pub fn row_hover_bg(self, value: impl Into<ComponentColor>) -> Self
pub fn is_bare(self, value: impl Into<bool>) -> Self
Trait Implementations§
Source§impl Clone for SelectStyle
impl Clone for SelectStyle
Source§impl ComponentStyle for SelectStyle
impl ComponentStyle for SelectStyle
Source§impl Debug for SelectStyle
impl Debug for SelectStyle
Auto Trait Implementations§
impl Freeze for SelectStyle
impl RefUnwindSafe for SelectStyle
impl Send for SelectStyle
impl Sync for SelectStyle
impl Unpin for SelectStyle
impl UnsafeUnpin for SelectStyle
impl UnwindSafe for SelectStyle
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().