[][src]Struct oox::shared::drawingml::shapedefs::PresetGeometry2D

pub struct PresetGeometry2D {
    pub preset: ShapeType,
    pub adjust_value_list: Option<GeomGuideList>,
}

Fields

preset: ShapeType

Specifies the preset geometry that is used for this shape. This preset can have any of the values in the enumerated list for ShapeType. This attribute is required in order for a preset geometry to be rendered.

Xml example

<p:sp>
  <p:nvSpPr>
    <p:cNvPr id="4" name="Sun 3"/>
    <p:cNvSpPr/>
    <p:nvPr/>
  </p:nvSpPr>
  <p:spPr>
    <a:xfrm>
      <a:off x="1981200" y="533400"/>
      <a:ext cx="1143000" cy="1066800"/>
    </a:xfrm>
    <a:prstGeom prst="sun">
    </a:prstGeom>
  </p:spPr>
</p:sp>

In the above example a preset geometry has been used to define a shape. The shape utilized here is the sun shape.

adjust_value_list: Option<GeomGuideList>

Methods

impl PresetGeometry2D[src]

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

Trait Implementations

impl Clone for PresetGeometry2D[src]

impl Debug for PresetGeometry2D[src]

impl PartialEq<PresetGeometry2D> for PresetGeometry2D[src]

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