pub struct ActionTilePaint {Show 15 fields
pub tone: SemanticTone,
pub highlighted: bool,
pub hovered: bool,
pub pressed: bool,
pub enabled: bool,
pub background: Option<Color>,
pub border: Option<Color>,
pub title_color: Option<Color>,
pub subtitle_color: Option<Color>,
pub icon_color: Option<Color>,
pub leading_tone_dot: Option<SemanticTone>,
pub radius: Option<f32>,
pub padding_x: Option<f32>,
pub leading_width: f32,
pub trailing_width: f32,
}Fields§
§tone: SemanticTone§highlighted: bool§hovered: bool§pressed: bool§enabled: bool§background: Option<Color>§border: Option<Color>§title_color: Option<Color>§subtitle_color: Option<Color>§icon_color: Option<Color>§leading_tone_dot: Option<SemanticTone>§radius: Option<f32>§padding_x: Option<f32>§leading_width: f32§trailing_width: f32Implementations§
Source§impl ActionTilePaint
impl ActionTilePaint
pub const fn neutral() -> ActionTilePaint
pub const fn tonal(tone: SemanticTone) -> ActionTilePaint
pub const fn highlighted(self, highlighted: bool) -> ActionTilePaint
pub const fn hovered(self, hovered: bool) -> ActionTilePaint
pub const fn pressed(self, pressed: bool) -> ActionTilePaint
pub const fn enabled(self, enabled: bool) -> ActionTilePaint
pub const fn background(self, background: Color) -> ActionTilePaint
pub const fn border(self, border: Color) -> ActionTilePaint
pub const fn title_color(self, title_color: Color) -> ActionTilePaint
pub const fn subtitle_color(self, subtitle_color: Color) -> ActionTilePaint
pub const fn icon_color(self, icon_color: Color) -> ActionTilePaint
pub const fn leading_tone_dot(self, tone: SemanticTone) -> ActionTilePaint
pub const fn radius(self, radius: f32) -> ActionTilePaint
pub const fn padding_x(self, padding_x: f32) -> ActionTilePaint
pub const fn leading_width(self, leading_width: f32) -> ActionTilePaint
pub const fn trailing_width(self, trailing_width: f32) -> ActionTilePaint
Trait Implementations§
Source§impl Clone for ActionTilePaint
impl Clone for ActionTilePaint
Source§fn clone(&self) -> ActionTilePaint
fn clone(&self) -> ActionTilePaint
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 ActionTilePaint
Source§impl Debug for ActionTilePaint
impl Debug for ActionTilePaint
Source§impl Default for ActionTilePaint
impl Default for ActionTilePaint
Source§fn default() -> ActionTilePaint
fn default() -> ActionTilePaint
Returns the “default value” for a type. Read more
Source§impl PartialEq for ActionTilePaint
impl PartialEq for ActionTilePaint
impl StructuralPartialEq for ActionTilePaint
Auto Trait Implementations§
impl Freeze for ActionTilePaint
impl RefUnwindSafe for ActionTilePaint
impl Send for ActionTilePaint
impl Sync for ActionTilePaint
impl Unpin for ActionTilePaint
impl UnsafeUnpin for ActionTilePaint
impl UnwindSafe for ActionTilePaint
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.