Skip to main content

ppt_rs/generator/slide_content/
layout.rs

1//! Slide layout types
2
3/// Slide layout types
4#[derive(Clone, Debug, Copy, PartialEq, Eq)]
5pub enum SlideLayout {
6    /// Title only (no content area)
7    TitleOnly,
8    /// Title and content (bullets)
9    TitleAndContent,
10    /// Title at top, content fills rest
11    TitleAndBigContent,
12    /// Blank slide
13    Blank,
14    /// Title centered on slide
15    CenteredTitle,
16    /// Two columns: title on left, content on right
17    TwoColumn,
18}
19
20impl SlideLayout {
21    pub fn as_str(&self) -> &'static str {
22        match self {
23            SlideLayout::TitleOnly => "titleOnly",
24            SlideLayout::TitleAndContent => "titleAndContent",
25            SlideLayout::TitleAndBigContent => "titleAndBigContent",
26            SlideLayout::Blank => "blank",
27            SlideLayout::CenteredTitle => "centeredTitle",
28            SlideLayout::TwoColumn => "twoColumn",
29        }
30    }
31}
32