skia_safe::svg

Type Alias Paint

Source
pub type Paint = Handle<SkSVGPaint>;

Aliased Type§

struct Paint(/* private fields */);

Implementations§

Source§

impl Paint

Source

pub fn color(&self) -> Option<Color>

Source

pub fn is_current_color(&self) -> bool

Source

pub fn is_color(&self) -> bool

Source

pub fn is_none(&self) -> bool

Source

pub fn from_color(color: Color) -> Self

Source

pub fn current_color() -> Self

Source

pub fn none() -> Self

Trait Implementations§

Source§

impl Debug for Paint

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more