Struct i_slint_core::graphics::PathCubicTo
source · #[repr(C)]pub struct PathCubicTo {
pub x: f32,
pub y: f32,
pub control_1_x: f32,
pub control_1_y: f32,
pub control_2_x: f32,
pub control_2_y: f32,
}
Expand description
PathCubicTo describes a smooth Bézier curve from the path’s current position to the specified x/y location, using two control points.
Fields§
§x: f32
The x coordinate of the curve’s end point.
y: f32
The y coordinate of the curve’s end point.
control_1_x: f32
The x coordinate of the curve’s first control point.
control_1_y: f32
The y coordinate of the curve’s first control point.
control_2_x: f32
The x coordinate of the curve’s second control point.
control_2_y: f32
The y coordinate of the curve’s second control point.
Implementations§
source§impl PathCubicTo
impl PathCubicTo
sourcepub const FIELD_OFFSETS: PathCubicToFieldsOffsets = _
pub const FIELD_OFFSETS: PathCubicToFieldsOffsets = _
Return a struct containing the offset of for the fields of this struct
Trait Implementations§
source§impl Clone for PathCubicTo
impl Clone for PathCubicTo
source§fn clone(&self) -> PathCubicTo
fn clone(&self) -> PathCubicTo
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 PathCubicTo
impl Debug for PathCubicTo
source§impl Default for PathCubicTo
impl Default for PathCubicTo
source§fn default() -> PathCubicTo
fn default() -> PathCubicTo
Returns the “default value” for a type. Read more
source§impl From<PathCubicTo> for PathElement
impl From<PathCubicTo> for PathElement
source§fn from(original: PathCubicTo) -> PathElement
fn from(original: PathCubicTo) -> PathElement
Converts to this type from the input type.
source§impl PartialEq for PathCubicTo
impl PartialEq for PathCubicTo
impl StructuralPartialEq for PathCubicTo
impl<'__dummy_lifetime> Unpin for PathCubicTowhere
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
Auto Trait Implementations§
impl Freeze for PathCubicTo
impl RefUnwindSafe for PathCubicTo
impl Send for PathCubicTo
impl Sync for PathCubicTo
impl UnwindSafe for PathCubicTo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)