pub struct Slide<'a> {
pub element: &'a Element,
pub name: Option<&'a str>,
pub master_page: Option<&'a str>,
pub position: usize,
}Expand description
One slide.
Fields§
§element: &'a ElementThe draw:page element and everything on it.
name: Option<&'a str>The slide’s name, where it has one. An application generates page1 and
so on for slides nobody has named.
master_page: Option<&'a str>The master page it takes its background and placeholders from.
position: usizeWhere the draw:page sits among the body’s children, so that the
slide can be reached again for changing without holding a reference.
Implementations§
Source§impl Slide<'_>
impl Slide<'_>
Sourcepub fn style_name(&self) -> Option<&str>
pub fn style_name(&self) -> Option<&str>
The drawing-page style the slide names, which carries its background and the switches over what its master gives it.
Sourcepub fn notes(&self) -> Option<&Element>
pub fn notes(&self) -> Option<&Element>
The speaker’s notes, which ODF keeps in a presentation:notes element on
the page rather than in a part of its own.
Sourcepub fn shapes(&self) -> impl Iterator<Item = &Element>
pub fn shapes(&self) -> impl Iterator<Item = &Element>
The shapes on the slide: every child that is not the notes.
Order is drawing order, back to front, which is the order ODF writes them in and the order they have to be drawn in.
Sourcepub fn shapes_indexed(&self) -> impl Iterator<Item = (usize, &Element)>
pub fn shapes_indexed(&self) -> impl Iterator<Item = (usize, &Element)>
The shapes with their index among the page’s children, which is what
Presentation::set_geometry takes.