pub struct CustomGeometry {
pub width_emu: i64,
pub height_emu: i64,
pub commands: Vec<PathCommand>,
}Expand description
<a:custGeom><a:pathLst><a:path w=".." h="..">’s own draw commands (CT_Path2D) — see
Geometry::Custom’s doc comment for scope.
Fields§
§width_emu: i64<a:path w=".."> — the path’s own coordinate space width. Distinct from the shape’s actual
on-slide size (ShapeProperties::transform’s own extent) — real PowerPoint scales the
path’s coordinates to fit whatever size the shape is actually drawn at, exactly like a
group’s chExt scaling its children (see ShapeGroup’s own doc comment in
powerpoint-ooxml for the same underlying idea).
height_emu: i64<a:path h="..">.
commands: Vec<PathCommand>The path’s draw commands, in order. The schema requires at least a moveTo before any
lnTo/cubicBezTo/close — not enforced at the model level, same best-effort posture used
elsewhere in this crate.
Implementations§
Source§impl CustomGeometry
impl CustomGeometry
Sourcepub fn new(width_emu: i64, height_emu: i64) -> CustomGeometry
pub fn new(width_emu: i64, height_emu: i64) -> CustomGeometry
Creates an empty custom path (no commands) with the given coordinate space size.
Sourcepub fn with_command(self, command: PathCommand) -> CustomGeometry
pub fn with_command(self, command: PathCommand) -> CustomGeometry
Appends one draw command.
Trait Implementations§
Source§impl Clone for CustomGeometry
impl Clone for CustomGeometry
Source§fn clone(&self) -> CustomGeometry
fn clone(&self) -> CustomGeometry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more