#[repr(C)]pub struct PathMoveTo {
pub x: f32,
pub y: f32,
}
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: f32
The x coordinate where the current position should be.
y: f32
The y coordinate where the current position should be.
Implementations§
Source§impl PathMoveTo
impl PathMoveTo
Sourcepub const FIELD_OFFSETS: PathMoveToFieldsOffsets
pub const FIELD_OFFSETS: PathMoveToFieldsOffsets
Return a struct containing the offset of for the fields of this struct
Trait Implementations§
Source§impl Clone for PathMoveTo
impl Clone for PathMoveTo
Source§fn clone(&self) -> PathMoveTo
fn clone(&self) -> PathMoveTo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PathMoveTo
impl Debug for PathMoveTo
Source§impl Default for PathMoveTo
impl Default for PathMoveTo
Source§fn default() -> PathMoveTo
fn default() -> PathMoveTo
Returns the “default value” for a type. Read more
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 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