Trait freya_testing::prelude::ElementRenderer
pub trait ElementRenderer {
// Required method
fn render(
self: Box<Self>,
layout_node: &LayoutNode,
node_ref: &NodeRef<'_, CustomAttributeValues>,
canvas: &Canvas,
font_collection: &mut RCHandle<skia_textlayout_FontCollection>,
font_manager: &RCHandle<SkFontMgr>,
default_fonts: &[String],
scale_factor: f32
);
// Provided method
fn clip(
&self,
_layout_node: &LayoutNode,
_node_ref: &NodeRef<'_, CustomAttributeValues>,
_canvas: &Canvas,
_scale_factor: f32
) { ... }
}