pub struct ButtonColors { /* private fields */ }Implementations§
Source§impl ButtonColors
impl ButtonColors
pub fn new() -> Self
pub fn background(self, color: u32) -> Self
pub fn background_hover(self, color: u32) -> Self
pub fn background_pressed(self, color: u32) -> Self
pub fn text_primary(self, color: u32) -> Self
pub fn text_muted(self, color: u32) -> Self
pub fn border(self, color: u32) -> Self
pub fn has_background(&self) -> bool
pub fn background_color(&self) -> u32
pub fn has_background_hover(&self) -> bool
pub fn background_hover_color(&self) -> u32
pub fn has_background_pressed(&self) -> bool
pub fn background_pressed_color(&self) -> u32
pub fn has_text_primary(&self) -> bool
pub fn text_primary_color(&self) -> u32
pub fn has_text_muted(&self) -> bool
pub fn text_muted_color(&self) -> u32
pub fn has_border(&self) -> bool
pub fn border_color(&self) -> u32
Trait Implementations§
Source§impl Clone for ButtonColors
impl Clone for ButtonColors
Source§fn clone(&self) -> ButtonColors
fn clone(&self) -> ButtonColors
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 ButtonColors
Source§impl Debug for ButtonColors
impl Debug for ButtonColors
Source§impl Default for ButtonColors
impl Default for ButtonColors
Source§fn default() -> ButtonColors
fn default() -> ButtonColors
Returns the “default value” for a type. Read more
impl Eq for ButtonColors
Source§impl PartialEq for ButtonColors
impl PartialEq for ButtonColors
impl StructuralPartialEq for ButtonColors
Auto Trait Implementations§
impl Freeze for ButtonColors
impl RefUnwindSafe for ButtonColors
impl Send for ButtonColors
impl Sync for ButtonColors
impl Unpin for ButtonColors
impl UnsafeUnpin for ButtonColors
impl UnwindSafe for ButtonColors
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