pub trait ElementUtils {
// Required method
fn render(
self,
layout_node: &LayoutNode,
node_ref: &DioxusNode<'_>,
canvas: &Canvas,
font_collection: &mut FontCollection,
font_manager: &FontMgr,
default_fonts: &[String],
scale_factor: f32
);
// Provided methods
fn is_point_inside_area(
&self,
point: &CursorPoint,
_node_ref: &DioxusNode<'_>,
layout_node: &LayoutNode,
_scale_factor: f32
) -> bool { ... }
fn clip(
&self,
_layout_node: &LayoutNode,
_node_ref: &DioxusNode<'_>,
_canvas: &Canvas,
_scale_factor: f32
) { ... }
}