pub struct Path {
pub width: i64,
pub height: i64,
pub fill: Option<String>,
pub stroke: Option<String>,
pub segments: Vec<PathSegment>,
}Expand description
路径(<a:path>)。
一条路径由宽度/高度和一组 PathSegment 组成。
Fields§
§width: i64宽度(EMU,w="...")。
height: i64高度(EMU,h="...")。
fill: Option<String>填充模式(fill="none|norm|darken|darkenLess|lighten|lightenLess",可选)。
stroke: Option<String>描边模式(stroke="none|norm",可选)。
segments: Vec<PathSegment>路径段列表。
Implementations§
Trait Implementations§
impl Eq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.