Struct i_slint_core::graphics::PathDataIterator
source · pub struct PathDataIterator { /* private fields */ }Expand description
PathDataIterator is a data structure that acts as starting point for iterating through the low-level events of a path. If the path was constructed from said events, then it is a very thin abstraction. If the path was created from higher-level elements, then an intermediate lyon path is required/built.
Implementations§
source§impl PathDataIterator
impl PathDataIterator
sourcepub fn iter(&self) -> impl Iterator<Item = Event<Point, Point>> + '_
pub fn iter(&self) -> impl Iterator<Item = Event<Point, Point>> + '_
Create a new iterator for path traversal.
sourcepub fn fit(&mut self, width: f32, height: f32, viewbox: Option<Box2D>)
pub fn fit(&mut self, width: f32, height: f32, viewbox: Option<Box2D>)
Applies a transformation on the elements this iterator provides that tries to fit everything into the specified width/height, respecting the provided viewbox. If no viewbox is specified, the bounding rectangle of the path is used.