pub struct CT_ShapeProperties {
pub transform: Option<CT_Transform2D>,
pub custom_geometry: Option<CT_CustomGeometry2D>,
pub preset_geometry: Option<CT_PresetGeometry2D>,
pub fill: Option<Fill>,
pub line: Option<CT_LineProperties>,
pub effects: Option<CT_EffectList>,
/* private fields */
}Expand description
The modelled children of one DrawingML a:spPr element.
Fields§
§transform: Option<CT_Transform2D>§custom_geometry: Option<CT_CustomGeometry2D>§preset_geometry: Option<CT_PresetGeometry2D>§fill: Option<Fill>§line: Option<CT_LineProperties>§effects: Option<CT_EffectList>Implementations§
Source§impl CT_ShapeProperties
impl CT_ShapeProperties
Sourcepub fn with_inherited_defaults(&self, defaults: &Self) -> Result<Self>
pub fn with_inherited_defaults(&self, defaults: &Self) -> Result<Self>
Returns staged local properties with absent source-master defaults filled.
Sourcepub fn from_xml(xml: &[u8]) -> Result<Self>
pub fn from_xml(xml: &[u8]) -> Result<Self>
Parses one complete a:spPr element with any namespace prefix.
Sourcepub fn from_xml_with_inherited_namespaces(
xml: &[u8],
inherited: &[(String, String)],
) -> Result<Self>
pub fn from_xml_with_inherited_namespaces( xml: &[u8], inherited: &[(String, String)], ) -> Result<Self>
Parses a property fragment in its actual enclosing namespace scope.
Sourcepub fn to_xml(&self) -> Result<Vec<u8>>
pub fn to_xml(&self) -> Result<Vec<u8>>
Writes shape properties with the fixed a: prefix and schema order.
Sourcepub fn write_xml<W: Write>(&self, writer: &mut Writer<W>) -> Result<()>
pub fn write_xml<W: Write>(&self, writer: &mut Writer<W>) -> Result<()>
Writes shape properties into an existing XML writer.
Sourcepub fn write_xml_as<W: Write>(
&self,
writer: &mut Writer<W>,
name: &str,
) -> Result<()>
pub fn write_xml_as<W: Write>( &self, writer: &mut Writer<W>, name: &str, ) -> Result<()>
Writes shape properties under the caller’s required root name.
pub fn raw_children(&self) -> &OrderedRawChildren
Sourcepub fn has_unmodelled_effect(&self) -> bool
pub fn has_unmodelled_effect(&self) -> bool
Returns whether an opaque effect DAG is present instead of a typed list.
Sourcepub fn has_unmodelled_effect_placeholder_color(&self) -> bool
pub fn has_unmodelled_effect_placeholder_color(&self) -> bool
Reports a placeholder colour inside an opaque effect DAG.
Trait Implementations§
Source§impl Clone for CT_ShapeProperties
impl Clone for CT_ShapeProperties
Source§impl Debug for CT_ShapeProperties
impl Debug for CT_ShapeProperties
Source§impl Default for CT_ShapeProperties
impl Default for CT_ShapeProperties
Auto Trait Implementations§
impl Freeze for CT_ShapeProperties
impl RefUnwindSafe for CT_ShapeProperties
impl Send for CT_ShapeProperties
impl Sync for CT_ShapeProperties
impl Unpin for CT_ShapeProperties
impl UnsafeUnpin for CT_ShapeProperties
impl UnwindSafe for CT_ShapeProperties
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