Struct smithay_client_toolkit::window::ButtonColorSpec [−][src]
pub struct ButtonColorSpec { pub idle: ColorSpec, pub hovered: ColorSpec, pub disabled: ColorSpec, }
A color specification associated with a button
It regroups 3 color specifications depending on the state of the button: idle, hovered, or disabled.
Fields
idle: ColorSpec
ColorSpec for an idle button
hovered: ColorSpec
ColorSpec for an hovered button
disabled: ColorSpec
ColorSpec for a disabled button
Implementations
impl ButtonColorSpec
[src]
pub fn get_for(&self, state: ButtonState) -> ColorSpec
[src]
Get the ColorSpec associated with a given button state
Trait Implementations
impl Clone for ButtonColorSpec
[src]
fn clone(&self) -> ButtonColorSpec
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ButtonColorSpec
[src]
impl Debug for ButtonColorSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for ButtonColorSpec
impl Send for ButtonColorSpec
impl Sync for ButtonColorSpec
impl Unpin for ButtonColorSpec
impl UnwindSafe for ButtonColorSpec
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,