Trait freya_core::skia::skia_renderer::ElementRenderer
source · pub trait ElementRenderer {
// Required method
fn render(
self: Box<Self>,
layout_node: &LayoutNode,
node_ref: &DioxusNode<'_>,
canvas: &Canvas,
font_collection: &mut FontCollection,
font_manager: &FontMgr,
default_fonts: &[String],
scale_factor: f32
);
// Provided method
fn clip(
&self,
_layout_node: &LayoutNode,
_node_ref: &DioxusNode<'_>,
_canvas: &Canvas,
_scale_factor: f32
) { ... }
}