Struct i_slint_core::graphics::PathMoveTo
source · [−]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
sourceimpl 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
sourceimpl Clone for PathMoveTo
impl Clone for PathMoveTo
sourcefn clone(&self) -> PathMoveTo
fn clone(&self) -> PathMoveTo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PathMoveTo
impl Debug for PathMoveTo
sourceimpl Default for PathMoveTo
impl Default for PathMoveTo
sourcefn default() -> PathMoveTo
fn default() -> PathMoveTo
Returns the “default value” for a type. Read more
sourceimpl From<PathMoveTo> for PathElement
impl From<PathMoveTo> for PathElement
sourcefn from(original: PathMoveTo) -> PathElement
fn from(original: PathMoveTo) -> PathElement
Converts to this type from the input type.
sourceimpl PartialEq<PathMoveTo> for PathMoveTo
impl PartialEq<PathMoveTo> for PathMoveTo
sourcefn eq(&self, other: &PathMoveTo) -> bool
fn eq(&self, other: &PathMoveTo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PathMoveTo) -> bool
fn ne(&self, other: &PathMoveTo) -> bool
This method tests for !=
.
impl StructuralPartialEq for PathMoveTo
impl<'__dummy_lifetime> Unpin for PathMoveTo where
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
Auto Trait Implementations
impl RefUnwindSafe for PathMoveTo
impl Send for PathMoveTo
impl Sync for PathMoveTo
impl UnwindSafe for PathMoveTo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more