pub struct ShadowEffect {
pub dir: i32,
pub dist: i64,
pub blur_rad: i64,
pub color: Color,
pub rot_with_shape: Option<bool>,
}Expand description
阴影效果(<a:outerShdw> / <a:innerShdw>)。
对应 python-pptx 中 ShadowFormat 的底层支撑。
Fields§
§dir: i32阴影方向(1/60000 度,0 = 向右,2700000 = 向下,5400000 = 向左,8100000 = 向上)。
dist: i64距离(EMU)。
blur_rad: i64模糊半径(EMU)。
color: Color阴影颜色。
rot_with_shape: Option<bool>是否随形状旋转(仅 outerShdw)。
Trait Implementations§
Source§impl Clone for ShadowEffect
impl Clone for ShadowEffect
Source§fn clone(&self) -> ShadowEffect
fn clone(&self) -> ShadowEffect
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 ShadowEffect
impl Debug for ShadowEffect
Source§impl Default for ShadowEffect
impl Default for ShadowEffect
Source§fn default() -> ShadowEffect
fn default() -> ShadowEffect
Returns the “default value” for a type. Read more
impl Eq for ShadowEffect
Source§impl PartialEq for ShadowEffect
impl PartialEq for ShadowEffect
Source§fn eq(&self, other: &ShadowEffect) -> bool
fn eq(&self, other: &ShadowEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShadowEffect
Auto Trait Implementations§
impl Freeze for ShadowEffect
impl RefUnwindSafe for ShadowEffect
impl Send for ShadowEffect
impl Sync for ShadowEffect
impl Unpin for ShadowEffect
impl UnsafeUnpin for ShadowEffect
impl UnwindSafe for ShadowEffect
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.