Package-level declarations

Types

Link copied to clipboard
interface DslSlide

Shared contract for slides whose content is authored with the kotlinx.html DSL. Implemented by HorizontalDslSlide and VerticalDslSlide. This is the only slide type that can host the extension DSLs (com.kslides.playground, com.kslides.diagram, com.kslides.codeSnippet, letsPlot{}).

Link copied to clipboard
class HorizontalDslSlide(val presentation: Presentation, content: SlideArgs) : HorizontalSlide, DslSlide

A top-level DSL slide. Add via com.kslides.Presentation.dslSlide; populate the slide body inside content.

Link copied to clipboard

A top-level slide whose content is raw HTML. Add via com.kslides.Presentation.htmlSlide.

Link copied to clipboard

A top-level Markdown slide. Add via com.kslides.Presentation.markdownSlide; define content with the content block or by assigning filename.

Link copied to clipboard
abstract class HorizontalSlide(presentation: Presentation, content: SlideArgs) : Slide

Marker superclass for slides that appear at the top level of a presentation.

Link copied to clipboard
interface HtmlSlide

Shared contract for slides whose content is a raw HTML string. Implemented by HorizontalHtmlSlide and VerticalHtmlSlide.

Link copied to clipboard
interface MarkdownSlide

Shared contract for slides whose content is authored in Markdown. Implemented by HorizontalMarkdownSlide and VerticalMarkdownSlide.

Link copied to clipboard
abstract class Slide(presentation: Presentation, content: SlideArgs)

Base class for all slide types (MarkdownSlide, HtmlSlide, DslSlide). Holds the shared reveal.js attributes (id, classes, style, visibility flags, auto-animate flags) and a per-slide SlideConfig that is merged with the global / presentation configs at render time.

Link copied to clipboard
typealias SlideArgs = (div: DIV, slide: Slide, useHttp: Boolean) -> Unit

Rendering callback invoked for each slide during page generation.

Link copied to clipboard
class VerticalDslSlide(val presentation: Presentation, content: SlideArgs) : VerticalSlide, DslSlide

A DSL slide inside a verticalSlides{} block. Same semantics as HorizontalDslSlide.

Link copied to clipboard

A raw-HTML slide inside a verticalSlides{} block. Same semantics as HorizontalHtmlSlide but lives in a vertical stack.

Link copied to clipboard

A Markdown slide inside a verticalSlides{} block. Same semantics as HorizontalMarkdownSlide but lives in a vertical stack.

Link copied to clipboard
open class VerticalSlide(presentation: Presentation, content: SlideArgs) : Slide

Marker superclass for slides that appear inside a verticalSlides {} block. A single VerticalSlide wraps the entire vertical stack and carries the shared VerticalSlidesContext used by its children.