pub struct SlideContent {Show 29 fields
pub title: String,
pub content: Vec<String>,
pub bullets: Vec<BulletPoint>,
pub bullet_style: BulletStyle,
pub title_size: Option<u32>,
pub content_size: Option<u32>,
pub title_bold: bool,
pub content_bold: bool,
pub title_italic: bool,
pub content_italic: bool,
pub title_underline: bool,
pub content_underline: bool,
pub title_color: Option<String>,
pub content_color: Option<String>,
pub has_table: bool,
pub has_chart: bool,
pub has_image: bool,
pub layout: SlideLayout,
pub transition: TransitionType,
pub table: Option<Table>,
pub shapes: Vec<Shape>,
pub images: Vec<Image>,
pub notes: Option<String>,
pub connectors: Vec<Connector>,
pub videos: Vec<Video>,
pub audios: Vec<Audio>,
pub charts: Vec<Chart>,
pub code_blocks: Vec<CodeBlock>,
pub ink_annotations: Option<InkAnnotations>,
}Expand description
Slide content for more complex presentations
Fields§
§title: String§content: Vec<String>§bullets: Vec<BulletPoint>Rich bullet points with styles and levels
bullet_style: BulletStyleDefault bullet style for this slide
title_size: Option<u32>§content_size: Option<u32>§title_bold: bool§content_bold: bool§title_italic: bool§content_italic: bool§title_underline: bool§content_underline: bool§title_color: Option<String>§content_color: Option<String>§has_table: bool§has_chart: bool§has_image: bool§layout: SlideLayout§transition: TransitionType§table: Option<Table>§shapes: Vec<Shape>§images: Vec<Image>§notes: Option<String>Speaker notes for the slide
connectors: Vec<Connector>Connectors between shapes
videos: Vec<Video>Videos embedded in slide
audios: Vec<Audio>Audio files embedded in slide
charts: Vec<Chart>Charts embedded in slide
code_blocks: Vec<CodeBlock>Code blocks with syntax highlighting
ink_annotations: Option<InkAnnotations>Ink annotations on the slide
Implementations§
Source§impl SlideContent
impl SlideContent
pub fn new(title: &str) -> Self
Sourcepub fn with_transition(self, transition: TransitionType) -> Self
pub fn with_transition(self, transition: TransitionType) -> Self
Set the slide transition
Sourcepub fn add_bullet(self, text: &str) -> Self
pub fn add_bullet(self, text: &str) -> Self
Add a bullet point with default style
Sourcepub fn add_styled_bullet(self, text: &str, style: BulletStyle) -> Self
pub fn add_styled_bullet(self, text: &str, style: BulletStyle) -> Self
Add a bullet point with specific style
Sourcepub fn add_numbered(self, text: &str) -> Self
pub fn add_numbered(self, text: &str) -> Self
Add a numbered item (shorthand for add_styled_bullet with Number)
Sourcepub fn add_lettered(self, text: &str) -> Self
pub fn add_lettered(self, text: &str) -> Self
Add a lettered item (shorthand for add_styled_bullet with LetterLower)
Sourcepub fn add_sub_bullet(self, text: &str) -> Self
pub fn add_sub_bullet(self, text: &str) -> Self
Add a sub-bullet (indented)
Sourcepub fn with_bullet_style(self, style: BulletStyle) -> Self
pub fn with_bullet_style(self, style: BulletStyle) -> Self
Set default bullet style for this slide
pub fn title_size(self, size: u32) -> Self
pub fn content_size(self, size: u32) -> Self
pub fn title_bold(self, bold: bool) -> Self
pub fn content_bold(self, bold: bool) -> Self
pub fn title_italic(self, italic: bool) -> Self
pub fn content_italic(self, italic: bool) -> Self
pub fn title_underline(self, underline: bool) -> Self
pub fn content_underline(self, underline: bool) -> Self
pub fn title_color(self, color: &str) -> Self
pub fn content_color(self, color: &str) -> Self
pub fn with_table(self) -> Self
pub fn with_chart(self) -> Self
pub fn with_image(self) -> Self
pub fn layout(self, layout: SlideLayout) -> Self
Sourcepub fn with_layout(self, layout: SlideLayout) -> Self
pub fn with_layout(self, layout: SlideLayout) -> Self
Alias for layout — per-slide layout selection.
pub fn table(self, table: Table) -> Self
Sourcepub fn with_shapes(self, shapes: Vec<Shape>) -> Self
pub fn with_shapes(self, shapes: Vec<Shape>) -> Self
Add multiple shapes to the slide
Sourcepub fn with_images(self, images: Vec<Image>) -> Self
pub fn with_images(self, images: Vec<Image>) -> Self
Add multiple images to the slide
Sourcepub fn add_connector(self, connector: Connector) -> Self
pub fn add_connector(self, connector: Connector) -> Self
Add a connector to the slide
Sourcepub fn with_connectors(self, connectors: Vec<Connector>) -> Self
pub fn with_connectors(self, connectors: Vec<Connector>) -> Self
Add multiple connectors to the slide
Sourcepub fn with_videos(self, videos: Vec<Video>) -> Self
pub fn with_videos(self, videos: Vec<Video>) -> Self
Add multiple videos to the slide
Sourcepub fn with_audios(self, audios: Vec<Audio>) -> Self
pub fn with_audios(self, audios: Vec<Audio>) -> Self
Add multiple audio files to the slide
Sourcepub fn with_charts(self, charts: Vec<Chart>) -> Self
pub fn with_charts(self, charts: Vec<Chart>) -> Self
Add multiple charts to the slide
Sourcepub fn with_ink(self, ink: InkAnnotations) -> Self
pub fn with_ink(self, ink: InkAnnotations) -> Self
Add ink annotations to the slide
Sourcepub fn has_connectors(&self) -> bool
pub fn has_connectors(&self) -> bool
Check if slide has connectors
Trait Implementations§
Source§impl Clone for SlideContent
impl Clone for SlideContent
Source§fn clone(&self) -> SlideContent
fn clone(&self) -> SlideContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SlideContent
impl RefUnwindSafe for SlideContent
impl Send for SlideContent
impl Sync for SlideContent
impl Unpin for SlideContent
impl UnsafeUnpin for SlideContent
impl UnwindSafe for SlideContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.