pub struct WearButtonSpec {
pub colors: WearColors,
pub label_style: WearTextStyle,
pub secondary_style: WearTextStyle,
pub min_height: f32,
pub corner_radius: f32,
pub padding_horizontal: f32,
pub padding_vertical: f32,
pub label_spacing: f32,
pub secondary_alpha: f32,
}Expand description
ButtonDefaults plus FilledButtonTokens.
Fields§
§colors: WearColors§label_style: WearTextStyle§secondary_style: WearTextStyle§min_height: f32FilledButtonTokens.ContainerHeight.
corner_radius: f32ShapeTokens.CornerLarge.
padding_horizontal: f32§padding_vertical: f32§label_spacing: f32Spacer(Modifier.size(1.dp)) between the two labels.
secondary_alpha: f32The alpha a secondary label draws its colour at.
Implementations§
Source§impl WearButtonSpec
impl WearButtonSpec
pub fn colors(self, colors: WearColors) -> Self
Trait Implementations§
Source§impl Clone for WearButtonSpec
impl Clone for WearButtonSpec
impl Copy for WearButtonSpec
Source§impl Debug for WearButtonSpec
impl Debug for WearButtonSpec
Source§impl Default for WearButtonSpec
impl Default for WearButtonSpec
Source§impl PartialEq for WearButtonSpec
impl PartialEq for WearButtonSpec
impl StructuralPartialEq for WearButtonSpec
Auto Trait Implementations§
impl Freeze for WearButtonSpec
impl RefUnwindSafe for WearButtonSpec
impl Send for WearButtonSpec
impl Sync for WearButtonSpec
impl Unpin for WearButtonSpec
impl UnsafeUnpin for WearButtonSpec
impl UnwindSafe for WearButtonSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more