Skip to main content

Module traits

Module traits 

Source
Expand description

Drawing renderer trait and rendering utilities.

Re-exports the DrawingRenderer trait for rendering drawing tools and provides the utility functions render_handles, point_near_line and point_near_points for custom renderers.

Re-exports§

pub use crate::drawings::registry::DrawingRenderer;

Functions§

point_near_line
Helper function to check if a point is near a line segment
point_near_points
Helper function to check if a point is near any point in a list
render_handles
Helper function to render selection handles