pub enum PathCommand {
MoveTo {
x: i64,
y: i64,
},
LineTo {
x: i64,
y: i64,
},
CubicBezierTo {
x1: i64,
y1: i64,
x2: i64,
y2: i64,
x: i64,
y: i64,
},
Close,
}Expand description
One draw command inside a custom path (EG_Path2DList’s children within a single <a:path> —
moveTo/lnTo/cubicBezTo/close only, see Geometry::Custom’s doc comment for what else
exists but isn’t modeled). Coordinates are in the enclosing <a:path>’s own coordinate space
(0.=width_emu/0.=height_emu), not absolute EMUs.
Variants§
MoveTo
<a:moveTo><a:pt x=".." y=".."/></a:moveTo> — starts a new subpath at (x, y) without
drawing.
LineTo
<a:lnTo><a:pt x=".." y=".."/></a:lnTo> — a straight line to (x, y).
CubicBezierTo
<a:cubicBezTo> — a cubic Bézier curve to (x, y), via the two control points (x1, y1)/(x2, y2).
Close
<a:close/> — closes the current subpath back to its own moveTo.
Trait Implementations§
Source§impl Clone for PathCommand
impl Clone for PathCommand
Source§fn clone(&self) -> PathCommand
fn clone(&self) -> PathCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PathCommand
Source§impl Debug for PathCommand
impl Debug for PathCommand
impl Eq for PathCommand
Source§impl PartialEq for PathCommand
impl PartialEq for PathCommand
impl StructuralPartialEq for PathCommand
Auto Trait Implementations§
impl Freeze for PathCommand
impl RefUnwindSafe for PathCommand
impl Send for PathCommand
impl Sync for PathCommand
impl Unpin for PathCommand
impl UnsafeUnpin for PathCommand
impl UnwindSafe for PathCommand
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.