pub struct Presentation { /* private fields */ }Expand description
PresentationML (PML) presentation.
Not intended to be constructed directly. Use ppt_rs::Presentation to open or
create a presentation.
Implementations§
Source§impl Presentation
impl Presentation
Sourcepub fn save_to_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
pub fn save_to_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
Save the presentation to a file path
Sourcepub fn part(&self) -> &PresentationPart
pub fn part(&self) -> &PresentationPart
Get the presentation part
Sourcepub fn part_mut(&mut self) -> &mut PresentationPart
pub fn part_mut(&mut self) -> &mut PresentationPart
Get mutable presentation part
Sourcepub fn core_properties(&self) -> Result<CorePropertiesPart>
pub fn core_properties(&self) -> Result<CorePropertiesPart>
Get core properties
Sourcepub fn slide_width(&self) -> Option<u32>
pub fn slide_width(&self) -> Option<u32>
Get slide width in EMU (English Metric Units)
Sourcepub fn set_slide_width(&mut self, width: u32) -> Result<()>
pub fn set_slide_width(&mut self, width: u32) -> Result<()>
Set slide width in EMU
Sourcepub fn slide_height(&self) -> Option<u32>
pub fn slide_height(&self) -> Option<u32>
Get slide height in EMU
Sourcepub fn set_slide_height(&mut self, height: u32) -> Result<()>
pub fn set_slide_height(&mut self, height: u32) -> Result<()>
Set slide height in EMU
Auto Trait Implementations§
impl Freeze for Presentation
impl !RefUnwindSafe for Presentation
impl Send for Presentation
impl Sync for Presentation
impl Unpin for Presentation
impl !UnwindSafe for Presentation
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more