pub struct SolidColorBrush {
pub color: Color,
}Expand description
Brush with single solid color.
Fields§
§color: ColorThe color of the brush.
Implementations§
Source§impl SolidColorBrush
impl SolidColorBrush
Sourcepub fn new(color: Color) -> Self
pub fn new(color: Color) -> Self
Create SolidColorBrush with color.
Trait Implementations§
Source§impl Clone for SolidColorBrush
impl Clone for SolidColorBrush
Source§fn clone(&self) -> SolidColorBrush
fn clone(&self) -> SolidColorBrush
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SolidColorBrush
impl RefUnwindSafe for SolidColorBrush
impl Send for SolidColorBrush
impl Sync for SolidColorBrush
impl Unpin for SolidColorBrush
impl UnwindSafe for SolidColorBrush
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