Struct i_slint_core::graphics::PathMoveTo
source · #[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: 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 = _
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(original: PathMoveTo) -> PathElement
fn from(original: PathMoveTo) -> PathElement
Converts to this type from the input type.
source§impl PartialEq<PathMoveTo> for PathMoveTo
impl PartialEq<PathMoveTo> for PathMoveTo
source§fn 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 ==.