[][src]Struct art_stamps::SVG

pub struct SVG {
    pub version: String,
    pub width: u32,
    pub height: u32,
    pub defs: defs,
    pub stamps: Vec<g>,
}

Fields

version: Stringwidth: u32height: u32defs: defsstamps: Vec<g>

Implementations

impl SVG[src]

pub fn new(width: u32, height: u32) -> Self[src]

pub fn from_str(s: &str) -> Result<Self, Error>[src]

pub fn resize(&mut self, width: u32, height: u32)[src]

pub fn load_polygon(&self, bmp_name: &str) -> Result<Vec<F64Point>, Error>[src]

pub fn intersect(
    &self,
    left: F64Point,
    right: F64Point,
    cache: &mut HashMap<String, Vec<F64Point>>
) -> Result<Option<F64Point>, Error>
[src]

pub fn add(
    &mut self,
    transform: Transform,
    img: String,
    clip_mask: String,
    color: Color
)
[src]

pub fn to_string(&self) -> Result<String, Error>[src]

Trait Implementations

impl Debug for SVG[src]

impl<'de> Deserialize<'de> for SVG[src]

impl PartialEq<SVG> for SVG[src]

impl Serialize for SVG[src]

impl StructuralPartialEq for SVG[src]

Auto Trait Implementations

impl RefUnwindSafe for SVG

impl Send for SVG

impl Sync for SVG

impl Unpin for SVG

impl UnwindSafe for SVG

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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.