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
Source§fn clone(&self) -> WearButtonSpec
fn clone(&self) -> WearButtonSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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