pub struct CompositionSolidColorBrush(/* private fields */);Expand description
A composition brush that paints with a color.
Implementations§
Source§impl CompositionSolidColorBrush
impl CompositionSolidColorBrush
Sourcepub fn from_brush(
brush: &Rc<CompositionBrush>,
) -> Option<CompositionSolidColorBrush>
pub fn from_brush( brush: &Rc<CompositionBrush>, ) -> Option<CompositionSolidColorBrush>
The handle of brush as a solid color brush, if it is one.
pub fn color(&self) -> Color
pub fn set_color(&self, value: Color)
Trait Implementations§
Source§impl Clone for CompositionSolidColorBrush
impl Clone for CompositionSolidColorBrush
Source§impl Deref for CompositionSolidColorBrush
impl Deref for CompositionSolidColorBrush
Source§type Target = Rc<CompositionBrush>
type Target = Rc<CompositionBrush>
The resulting type after dereferencing.
Source§fn deref(&self) -> &Rc<CompositionBrush>
fn deref(&self) -> &Rc<CompositionBrush>
Dereferences the value.
Auto Trait Implementations§
impl !RefUnwindSafe for CompositionSolidColorBrush
impl !Send for CompositionSolidColorBrush
impl !Sync for CompositionSolidColorBrush
impl !UnwindSafe for CompositionSolidColorBrush
impl Freeze for CompositionSolidColorBrush
impl Unpin for CompositionSolidColorBrush
impl UnsafeUnpin for CompositionSolidColorBrush
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more