#[repr(C)]pub struct PathMoveTo {
pub x: f32,
pub y: f32,
}Available on crate feature
path only.Expand description
PathMoveTo describes the event of setting the cursor on the path to use as starting
point for sub-sequent events, such as LineTo. Moving the cursor also implicitly closes
sub-paths and therefore beings a new sub-path.
Fields§
§x: f32The x coordinate where the current position should be.
y: f32The y coordinate where the current position should be.
Implementations§
Source§impl PathMoveTo
impl PathMoveTo
Sourcepub const FIELD_OFFSETS: PathMoveToFieldsOffsets = PathMoveToFieldsOffsets
pub const FIELD_OFFSETS: PathMoveToFieldsOffsets = PathMoveToFieldsOffsets
Return a zero-sized helper whose methods return field offsets.
Trait Implementations§
Source§impl Clone for PathMoveTo
impl Clone for PathMoveTo
Source§impl Debug for PathMoveTo
impl Debug for PathMoveTo
Source§impl Default for PathMoveTo
impl Default for PathMoveTo
Source§impl From<PathMoveTo> for PathElement
impl From<PathMoveTo> for PathElement
Source§fn from(value: PathMoveTo) -> Self
fn from(value: PathMoveTo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PathMoveTo
impl PartialEq for PathMoveTo
impl StructuralPartialEq for PathMoveTo
impl<'__dummy_lifetime> Unpin for PathMoveTowhere
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
Auto Trait Implementations§
impl Freeze for PathMoveTo
impl RefUnwindSafe for PathMoveTo
impl Send for PathMoveTo
impl Sync for PathMoveTo
impl UnsafeUnpin for PathMoveTo
impl UnwindSafe for PathMoveTo
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