pub struct GradientFill {
pub stops: Vec<GradientStop>,
pub gradient_type: GradientType,
pub flip: Option<String>,
pub rot_with_shape: Option<bool>,
}Expand description
渐变填充(<a:gradFill>)。
Fields§
§stops: Vec<GradientStop>光轨列表(至少 2 个)。
gradient_type: GradientType渐变类型(线性/路径)。
flip: Option<String>是否翻转(flip="none|tx|ty|xy|yx",默认 none)。
rot_with_shape: Option<bool>是否与形状一起旋转(rotWithShape="1|0")。
Trait Implementations§
Source§impl Clone for GradientFill
impl Clone for GradientFill
Source§fn clone(&self) -> GradientFill
fn clone(&self) -> GradientFill
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 moreSource§impl Debug for GradientFill
impl Debug for GradientFill
impl Eq for GradientFill
Source§impl PartialEq for GradientFill
impl PartialEq for GradientFill
Source§fn eq(&self, other: &GradientFill) -> bool
fn eq(&self, other: &GradientFill) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GradientFill
Auto Trait Implementations§
impl Freeze for GradientFill
impl RefUnwindSafe for GradientFill
impl Send for GradientFill
impl Sync for GradientFill
impl Unpin for GradientFill
impl UnsafeUnpin for GradientFill
impl UnwindSafe for GradientFill
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.