Enum ambient_ui::button::ButtonStyle
source · pub enum ButtonStyle {
Regular,
Primary,
Flat,
Card,
Inline,
}
Expand description
The style of a button.
Variants§
Regular
A regular button: uses variants of the cutout color for all states except hover, where it uses the secondary color.
Primary
A primary button: uses variants of the secondary color.
Flat
A flat button: has no background, has limited padding.
Card
A card button: meant to be used with “complex” child elements.
Inline
An inline button: has no additional styling aside from an underline, similar to a link on a webpage.
Trait Implementations§
source§impl Clone for ButtonStyle
impl Clone for ButtonStyle
source§fn clone(&self) -> ButtonStyle
fn clone(&self) -> ButtonStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ButtonStyle
impl Debug for ButtonStyle
source§impl PartialEq for ButtonStyle
impl PartialEq for ButtonStyle
source§fn eq(&self, other: &ButtonStyle) -> bool
fn eq(&self, other: &ButtonStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ButtonStyle
impl Eq for ButtonStyle
impl StructuralEq for ButtonStyle
impl StructuralPartialEq for ButtonStyle
Auto Trait Implementations§
impl RefUnwindSafe for ButtonStyle
impl Send for ButtonStyle
impl Sync for ButtonStyle
impl Unpin for ButtonStyle
impl UnwindSafe for ButtonStyle
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> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.