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

pub struct PathShadeProperties {
    pub path: Option<PathShadeType>,
    pub fill_to_rect: Option<RelativeRect>,
}

Fields

path: Option<PathShadeType>

Specifies the shape of the path to follow.

fill_to_rect: Option<RelativeRect>

This element defines the "focus" rectangle for the center shade, specified relative to the fill tile rectangle. The center shade fills the entire tile except the margins specified by each attribute.

Each edge of the center shade rectangle is defined by a percentage offset from the corresponding edge of the tile rectangle. A positive percentage specifies an inset, while a negative percentage specifies an outset.

Note

For example, a left offset of 25% specifies that the left edge of the center shade rectangle is located to the right of the tile rectangle's left edge by an amount equal to 25% of the tile rectangle's width.

Xml example

<a:path path="rect">
  <a:fillToRect l="50000" r="50000" t="50000" b="50000"/>
</a:path>

In the above shape, the rectangle defined by fillToRect is a single point in the center of the shape. This creates the effect of the center shade focusing at a point in the center of the region.

Methods

impl PathShadeProperties[src]

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

Trait Implementations

impl Clone for PathShadeProperties[src]

impl Debug for PathShadeProperties[src]

impl Default for PathShadeProperties[src]

impl PartialEq<PathShadeProperties> for PathShadeProperties[src]

impl StructuralPartialEq for PathShadeProperties[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.