[][src]Enum orbtk_utils::Brush

pub enum Brush {
    SolidColor(Color),
    LinearGradient {
        start: Point,
        end: Point,
        stops: Vec<LinearGradientStop>,
    },
}

A Brushdescribes how a shape is filled or stroked.

Variants

SolidColor(Color)

Paints an area with a solid color.

LinearGradient

Paints an area with a linear gradient.

Fields of LinearGradient

start: Pointend: Pointstops: Vec<LinearGradientStop>

Implementations

impl Brush[src]

pub fn is_transparent(&self) -> bool[src]

Trait Implementations

impl Clone for Brush[src]

impl Debug for Brush[src]

impl Default for Brush[src]

impl<'_> From<&'_ str> for Brush[src]

impl From<Brush> for Color[src]

impl From<Color> for Brush[src]

impl From<String> for Brush[src]

impl From<Value> for Brush[src]

impl PartialEq<Brush> for Brush[src]

impl StructuralPartialEq for Brush[src]

Auto Trait Implementations

impl RefUnwindSafe for Brush

impl Send for Brush

impl Sync for Brush

impl Unpin for Brush

impl UnwindSafe for Brush

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.