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 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 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§fn clone(&self) -> CT_ShapeProperties
fn clone(&self) -> CT_ShapeProperties
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CT_ShapeProperties
impl Debug for CT_ShapeProperties
Source§impl Default for CT_ShapeProperties
impl Default for CT_ShapeProperties
Source§fn default() -> CT_ShapeProperties
fn default() -> CT_ShapeProperties
Returns the “default value” for a type. Read more
Source§impl PartialEq for CT_ShapeProperties
impl PartialEq for CT_ShapeProperties
impl StructuralPartialEq 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