pub enum Shape {
AutoShape(AutoShape),
Picture(Picture),
Chart(Box<SlideChart>),
Group(ShapeGroup),
Connector(Connector),
Table(SlideTable),
Media(SlideMedia),
}Expand description
A single item in a slide’s shape tree (<p:spTree>’s children, in document order) — an enum
covering every distinct shape kind PresentationML defines.
Variants§
AutoShape(AutoShape)
<p:sp>, CT_Shape — an autoshape or text box, possibly a placeholder.
Picture(Picture)
<p:pic>, CT_Picture — an embedded image.
Chart(Box<SlideChart>)
<p:graphicFrame> wrapping a <c:chart> — an embedded chart. Boxed: a chart’s own nested
ChartSpace dwarfs every other variant here, and clippy’s large_enum_variant flags the
resulting gap (every Shape, no matter its real kind, otherwise pays for the biggest one).
Group(ShapeGroup)
<p:grpSp>, CT_GroupShape — a group of shapes moving/resizing as one, itself containing
any of these same variants (including nested groups).
Connector(Connector)
<p:cxnSp>, CT_Connector — a straight/elbow/curved connector line, typically linking two
other shapes.
Table(SlideTable)
<p:graphicFrame> wrapping an <a:tbl> — an embedded table.
Media(SlideMedia)
<p:pic> carrying an <a:videoFile>/<a:audioFile> reference instead of a plain image —
an embedded video or audio clip.