[][src]Struct oox::shared::drawingml::shapeprops::ReflectionEffect

pub struct ReflectionEffect {
    pub blur_radius: Option<PositiveCoordinate>,
    pub start_opacity: Option<PositiveFixedPercentage>,
    pub start_position: Option<PositiveFixedPercentage>,
    pub end_opacity: Option<PositiveFixedPercentage>,
    pub end_position: Option<PositiveFixedPercentage>,
    pub distance: Option<PositiveCoordinate>,
    pub direction: Option<PositiveFixedAngle>,
    pub fade_direction: Option<PositiveFixedAngle>,
    pub scale_x: Option<Percentage>,
    pub scale_y: Option<Percentage>,
    pub skew_x: Option<FixedAngle>,
    pub skew_y: Option<FixedAngle>,
    pub alignment: Option<RectAlignment>,
    pub rotate_with_shape: Option<bool>,
}

This element specifies a reflection effect.

Fields

blur_radius: Option<PositiveCoordinate>

Specifies the blur radius.

Defaults to 0

start_opacity: Option<PositiveFixedPercentage>

Starting reflection opacity.

Defaults to 100_000

start_position: Option<PositiveFixedPercentage>

Specifies the start position (along the alpha gradient ramp) of the start alpha value.

Defaults to 0

end_opacity: Option<PositiveFixedPercentage>

Specifies the ending reflection opacity.

Defaults to 0

end_position: Option<PositiveFixedPercentage>

Specifies the end position (along the alpha gradient ramp) of the end alpha value.

Defaults to 100_000

distance: Option<PositiveCoordinate>

Specifies how far to distance the shadow.

Defaults to 0

direction: Option<PositiveFixedAngle>

Specifies the direction of the alpha gradient ramp relative to the shape itself.

Defaults to 0

fade_direction: Option<PositiveFixedAngle>

Specifies the direction to offset the reflection.

Defaults to 5_400_000

scale_x: Option<Percentage>

Specifies the horizontal scaling factor.

Defaults to 100_000

scale_y: Option<Percentage>

Specifies the vertical scaling factor.

Defaults to 100_000

skew_x: Option<FixedAngle>

Specifies the horizontal skew angle.

Defaults to 0

skew_y: Option<FixedAngle>

Specifies the vertical skew angle.

Defaults to 0

alignment: Option<RectAlignment>

Specifies shadow alignment.

Defaults to RectAlignment::Bottom

rotate_with_shape: Option<bool>

Specifies if the reflection rotates with the shape.

Defaults to true

Methods

impl ReflectionEffect[src]

pub fn from_xml_element(xml_node: &XmlNode) -> Result<Self>[src]

Trait Implementations

impl Clone for ReflectionEffect[src]

impl Debug for ReflectionEffect[src]

impl Default for ReflectionEffect[src]

impl PartialEq<ReflectionEffect> for ReflectionEffect[src]

impl StructuralPartialEq for ReflectionEffect[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.