skia_safe/modules/svg/
shape.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
mod circle;
mod ellipse;
mod line;
mod path;
mod poly;
mod rect;

pub use self::{circle::Circle, ellipse::Ellipse, line::Line, path::Path, poly::Poly, rect::Rect};

use super::{DebugAttributes, NodeSubtype};
use crate::prelude::*;
use skia_bindings as sb;

pub type Shape = RCHandle<sb::SkSVGShape>;

impl NodeSubtype for sb::SkSVGShape {
    type Base = sb::SkSVGTransformableNode;
}

impl DebugAttributes for Shape {
    const NAME: &'static str = "Shape";

    fn _dbg(&self, builder: &mut std::fmt::DebugStruct) {
        self.as_base()._dbg(builder);
    }
}