pub struct PathState {
pub current: Point,
pub first: Point,
pub last_ctrl: Point,
}Expand description
Represents the current state of a path while it is being built.
Fields§
§current: PointThe current point.
first: PointThe first point of the current sub-path.
last_ctrl: PointThe last control point.
Implementations§
Source§impl PathState
impl PathState
pub fn svg_event(&mut self, event: SvgEvent)
pub fn path_event(&mut self, event: PathEvent)
pub fn flattened_event(&mut self, event: FlattenedEvent)
pub fn move_to(&mut self, to: Point)
pub fn line_to(&mut self, to: Point)
pub fn curve_to(&mut self, ctrl: Point, to: Point)
pub fn close(&mut self)
pub fn next(&mut self, to: Point)
pub fn relative_next(&mut self, to: Vec2)
pub fn get_smooth_ctrl(&self) -> Point
pub fn from_relative(&self, v: Vec2) -> Point
pub fn svg_to_path_event(&self, event: SvgEvent) -> PathEvent
Auto Trait Implementations§
impl Freeze for PathState
impl RefUnwindSafe for PathState
impl Send for PathState
impl Sync for PathState
impl Unpin for PathState
impl UnwindSafe for PathState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more