Skip to main content

write_geometry

Function write_geometry 

Source
pub fn write_geometry<W>(
    writer: &mut Writer<W>,
    geometry: &Geometry,
    adjustments: &[GeometryAdjustment],
) -> Result<(), Error>
where W: Write,
Expand description

Writes EG_Geometry<a:prstGeom prst=".."> or <a:custGeom>.. (see Geometry’s doc comment for what custGeom scope is modeled).

adjustments writes a preset shape’s own <a:avLst> (adjustment handle values, e.g. a rounded rectangle’s corner radius) — ignored for Geometry::Custom (which has no avLst of its own; see ShapeProperties::geometry_adjustments’s doc comment for why this is a separate parameter/field rather than living inside Geometry::Preset itself). Pass &[] when there are none to set (the overwhelmingly common case — most preset shapes use their own built-in defaults).