pub struct CommandButtonPaint {
pub tone: SemanticTone,
pub icon_tone: Option<SemanticTone>,
pub fill: CommandButtonFill,
pub hovered: bool,
pub pressed: bool,
}Fields§
§tone: SemanticTone§icon_tone: Option<SemanticTone>§fill: CommandButtonFill§hovered: bool§pressed: boolImplementations§
Source§impl CommandButtonPaint
impl CommandButtonPaint
pub const fn neutral() -> Self
pub const fn tonal(tone: SemanticTone) -> Self
pub const fn filled(tone: SemanticTone) -> Self
pub const fn icon_tone(self, tone: SemanticTone) -> Self
pub const fn hovered(self, hovered: bool) -> Self
pub const fn pressed(self, pressed: bool) -> Self
Trait Implementations§
Source§impl Clone for CommandButtonPaint
impl Clone for CommandButtonPaint
impl Copy for CommandButtonPaint
Source§impl Debug for CommandButtonPaint
impl Debug for CommandButtonPaint
Source§impl Default for CommandButtonPaint
impl Default for CommandButtonPaint
impl Eq for CommandButtonPaint
Source§impl PartialEq for CommandButtonPaint
impl PartialEq for CommandButtonPaint
impl StructuralPartialEq for CommandButtonPaint
Auto Trait Implementations§
impl Forget for CommandButtonPaint
impl Freeze for CommandButtonPaint
impl Move for CommandButtonPaint
impl RefUnwindSafe for CommandButtonPaint
impl Send for CommandButtonPaint
impl Sync for CommandButtonPaint
impl Unpin for CommandButtonPaint
impl UnsafeUnpin for CommandButtonPaint
impl UnwindSafe for CommandButtonPaint
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