Struct i_slint_core::graphics::PathLineTo
source · [−]Expand description
PathLineTo describes the event of moving the cursor on the path to the specified location along a straight line.
Fields
x: f32
The x coordinate where the line should go to.
y: f32
The y coordinate where the line should go to.
Implementations
sourceimpl PathLineTo
impl PathLineTo
sourcepub const FIELD_OFFSETS: PathLineToFieldsOffsets = {
trait PathLineToMustNotImplDrop { }
impl PathLineToMustNotImplDrop for T where T: ::core::ops::Drop {
}
impl PathLineToMustNotImplDrop for PathLineTo { }
struct __MustNotImplUnpin<'__dummy_lifetime>(f32, f32,
::core::marker::PhantomData<&'__dummy_lifetime ()>);
impl <'__dummy_lifetime> Unpin for PathLineTo where
__MustNotImplUnpin: Unpin {
}
let mut len = 0usize;
PathLineToFieldsOffsets{x:
{
let align = ::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len = len_rounded_up + ::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},
y:
{
let align = ::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len = len_rounded_up + ::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},}
}
pub const FIELD_OFFSETS: PathLineToFieldsOffsets = {
trait PathLineToMustNotImplDrop { }
impl PathLineToMustNotImplDrop for T where T: ::core::ops::Drop {
}
impl PathLineToMustNotImplDrop for PathLineTo { }
struct __MustNotImplUnpin<'__dummy_lifetime>(f32, f32,
::core::marker::PhantomData<&'__dummy_lifetime ()>);
impl <'__dummy_lifetime> Unpin for PathLineTo where
__MustNotImplUnpin: Unpin {
}
let mut len = 0usize;
PathLineToFieldsOffsets{x:
{
let align = ::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len = len_rounded_up + ::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},
y:
{
let align = ::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len = len_rounded_up + ::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},}
}
Return a struct containing the offset of for the fields of this struct
Trait Implementations
sourceimpl Clone for PathLineTo
impl Clone for PathLineTo
sourcefn clone(&self) -> PathLineTo
fn clone(&self) -> PathLineTo
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 PathLineTo
impl Debug for PathLineTo
sourceimpl Default for PathLineTo
impl Default for PathLineTo
sourcefn default() -> PathLineTo
fn default() -> PathLineTo
Returns the “default value” for a type. Read more
sourceimpl From<PathLineTo> for PathElement
impl From<PathLineTo> for PathElement
sourcefn from(original: PathLineTo) -> PathElement
fn from(original: PathLineTo) -> PathElement
Converts to this type from the input type.
sourceimpl PartialEq<PathLineTo> for PathLineTo
impl PartialEq<PathLineTo> for PathLineTo
sourcefn eq(&self, other: &PathLineTo) -> bool
fn eq(&self, other: &PathLineTo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PathLineTo) -> bool
fn ne(&self, other: &PathLineTo) -> bool
This method tests for !=
.
impl StructuralPartialEq for PathLineTo
impl<'__dummy_lifetime> Unpin for PathLineTo where
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
Auto Trait Implementations
impl RefUnwindSafe for PathLineTo
impl Send for PathLineTo
impl Sync for PathLineTo
impl UnwindSafe for PathLineTo
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more