[][src]Struct pathfinder_renderer::paint::Paint

pub struct Paint { /* fields omitted */ }

Methods

impl Paint[src]

pub fn from_color(color: ColorU) -> Paint[src]

pub fn from_gradient(gradient: Gradient) -> Paint[src]

pub fn from_pattern(pattern: Pattern) -> Paint[src]

pub fn black() -> Paint[src]

pub fn transparent_black() -> Paint[src]

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

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

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

pub fn apply_transform(&mut self, transform: &Transform2F)[src]

pub fn base_color(&self) -> ColorU[src]

pub fn set_base_color(&mut self, new_base_color: ColorU)[src]

pub fn overlay(&self) -> &Option<PaintOverlay>[src]

pub fn overlay_mut(&mut self) -> &mut Option<PaintOverlay>[src]

pub fn pattern(&self) -> Option<&Pattern>[src]

pub fn pattern_mut(&mut self) -> Option<&mut Pattern>[src]

pub fn gradient(&self) -> Option<&Gradient>[src]

Trait Implementations

impl Clone for Paint[src]

impl Debug for Paint[src]

impl Eq for Paint[src]

impl Hash for Paint[src]

impl PartialEq<Paint> for Paint[src]

impl StructuralEq for Paint[src]

impl StructuralPartialEq for Paint[src]

Auto Trait Implementations

impl RefUnwindSafe for Paint

impl Send for Paint

impl Sync for Paint

impl Unpin for Paint

impl UnwindSafe for Paint

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.