Trait freya_testing::prelude::ElementUtils

source ·
pub trait ElementUtils {
    // Required method
    fn render(
        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 methods
    fn is_point_inside_area(
        &self,
        point: &Point2D<f64, Measure>,
        _node_ref: &NodeRef<'_, CustomAttributeValues>,
        layout_node: &LayoutNode,
        _scale_factor: f32
    ) -> bool { ... }
    fn clip(
        &self,
        _layout_node: &LayoutNode,
        _node_ref: &NodeRef<'_, CustomAttributeValues>,
        _canvas: &Canvas,
        _scale_factor: f32
    ) { ... }
}

Required Methods§

source

fn render( 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 Methods§

source

fn is_point_inside_area( &self, point: &Point2D<f64, Measure>, _node_ref: &NodeRef<'_, CustomAttributeValues>, layout_node: &LayoutNode, _scale_factor: f32 ) -> bool

source

fn clip( &self, _layout_node: &LayoutNode, _node_ref: &NodeRef<'_, CustomAttributeValues>, _canvas: &Canvas, _scale_factor: f32 )

Implementors§