pub struct OuterShadow {
pub blur_radius_emu: Option<i64>,
pub distance_emu: Option<i64>,
pub direction_60000ths: Option<i32>,
pub color: Color,
}Expand description
<a:outerShdw> (CT_OuterShadowEffect) — a drop shadow cast outward from the shape.
algn/rotWithShape/kx/ky/sx/sy (fine-grained skew/scale/anchor controls) are not
modeled — a scope reduction, not a fixture gap (all CT_OuterShadowEffect’s own attributes
beyond the ones here are optional). color’s own alpha modifier (<a:alpha val="..">, seen
alongside <a:srgbClr>/<a:schemeClr> in real fixtures, e.g. 60810.pptx’s <a:srgbClr val="000000"><a:alpha val="41000"/></a:srgbClr>) is not preserved either — Color itself has
never modeled color transforms (see its own doc comment), not a new limitation.
Fields§
§blur_radius_emu: Option<i64>blurRad, in EMUs.
distance_emu: Option<i64>dist, in EMUs — how far the shadow is offset from the shape.
direction_60000ths: Option<i32>dir — the offset direction, in 60,000ths of a degree.
color: ColorImplementations§
Source§impl OuterShadow
impl OuterShadow
Sourcepub fn new(color: Color) -> OuterShadow
pub fn new(color: Color) -> OuterShadow
Creates a shadow with the given color and no other attribute set.
pub fn with_blur_radius_emu(self, blur_radius_emu: i64) -> OuterShadow
pub fn with_distance_emu(self, distance_emu: i64) -> OuterShadow
Sourcepub fn with_direction_degrees(self, degrees: f64) -> OuterShadow
pub fn with_direction_degrees(self, degrees: f64) -> OuterShadow
Sets the shadow’s offset direction, given in ordinary degrees.
Trait Implementations§
Source§impl Clone for OuterShadow
impl Clone for OuterShadow
Source§fn clone(&self) -> OuterShadow
fn clone(&self) -> OuterShadow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more