pub struct IconButtonColors {
pub background: Option<Color>,
pub pressed_background: Option<Color>,
pub disabled_background: Option<Color>,
}Expand description
The colours an icon button paints itself with.
Fields§
§background: Option<Color>The surface behind the icon at rest.
pressed_background: Option<Color>The surface while the button is held.
disabled_background: Option<Color>The surface while the button is disabled.
Implementations§
Source§impl IconButtonColors
impl IconButtonColors
Sourcepub const fn with_background(self, color: Color) -> Self
pub const fn with_background(self, color: Color) -> Self
Sets the resting surface.
Sourcepub const fn with_pressed_background(self, color: Color) -> Self
pub const fn with_pressed_background(self, color: Color) -> Self
Sets the held surface.
Sourcepub const fn with_disabled_background(self, color: Color) -> Self
pub const fn with_disabled_background(self, color: Color) -> Self
Sets the disabled surface.
Trait Implementations§
Source§impl Clone for IconButtonColors
impl Clone for IconButtonColors
Source§fn clone(&self) -> IconButtonColors
fn clone(&self) -> IconButtonColors
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 IconButtonColors
Source§impl Debug for IconButtonColors
impl Debug for IconButtonColors
Source§impl Default for IconButtonColors
impl Default for IconButtonColors
Source§fn default() -> IconButtonColors
fn default() -> IconButtonColors
Returns the “default value” for a type. Read more
Source§impl PartialEq for IconButtonColors
impl PartialEq for IconButtonColors
impl StructuralPartialEq for IconButtonColors
Auto Trait Implementations§
impl Freeze for IconButtonColors
impl RefUnwindSafe for IconButtonColors
impl Send for IconButtonColors
impl Sync for IconButtonColors
impl Unpin for IconButtonColors
impl UnsafeUnpin for IconButtonColors
impl UnwindSafe for IconButtonColors
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