Type Alias freya_engine::prelude::svg::Dom
pub type Dom = RCHandle<SkSVGDOM>;
Aliased Type§
struct Dom(/* private fields */);
Implementations
§impl RCHandle<SkSVGDOM>
impl RCHandle<SkSVGDOM>
pub fn read<R>(
reader: R,
font_mgr: impl Into<RCHandle<SkFontMgr>>,
) -> Result<RCHandle<SkSVGDOM>, LoadError>where
R: Read,
pub fn from_str( svg: impl AsRef<str>, font_mgr: impl Into<RCHandle<SkFontMgr>>, ) -> Result<RCHandle<SkSVGDOM>, LoadError>
pub fn from_bytes( svg: &[u8], font_mgr: impl Into<RCHandle<SkFontMgr>>, ) -> Result<RCHandle<SkSVGDOM>, LoadError>
pub fn render(&self, canvas: &Canvas)
pub fn set_container_size(&mut self, size: impl Into<Size>)
Trait Implementations
§impl<H> ConditionallySend for RCHandle<H>where
H: NativeRefCountedBase,
impl<H> ConditionallySend for RCHandle<H>where
H: NativeRefCountedBase,
RCHandle<H>
is conditionally Send and can be sent to
another thread when its reference count is 1.
§impl<N> Flattenable for RCHandle<N>where
N: NativeFlattenable + NativeRefCountedBase,
impl<N> Flattenable for RCHandle<N>where
N: NativeFlattenable + NativeRefCountedBase,
§impl<N> From<&RCHandle<N>> for RCHandle<N>where
N: NativeRefCounted,
impl<N> From<&RCHandle<N>> for RCHandle<N>where
N: NativeRefCounted,
A reference counted handle is cheap to clone, so we do support a conversion from a reference to a ref counter to an owned handle.