Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Eagerness
- data Presentation = Presentation {}
- newtype Slide = Slide {
- nodes :: [ContentNode]
- data ContentNode
- data Style = Style {
- selectors :: [(Selector, ElementStyle)]
- baseCss :: String
- data Selector
- data ElementStyle = ElementStyle {
- backgroundColor :: Maybe (Colour Float)
- fontFamily :: Maybe String
- fontSize :: Maybe Int
- emptyPresentation :: Presentation
- emptyStyle :: Style
- emptyElementStyle :: ElementStyle
Documentation
Describes the behavior of the presentation element.
data Presentation Source
The outermost type. Holds slides and styling.
The outermost type of a single slide. Holds content nodes.
Slide | |
|
data ContentNode Source
The main type in the presentaion. Describes all the possible kinds of content.
Header Int String | Generates a <hN> tag where the N is the first argument. |
List [ContentNode] | Generates an unordered list that's immediately displayed. |
Text String | A plain text node. |
Break | Generates a <br /> tag. A new line. |
RawSVG Int Int String | Generates an SVG tag with the specified width and height and string contents. |
Diagram Int (Diagram SVG) | Generates an SVG tag from a given height and a Diagram |
UnfoldList Eagerness [ContentNode] | Generates a list of elements where each element is delayed. The |
Sequence Eagerness [ContentNode] | Generates elements in sequence with the next one REPLACING the previous one. The Eagerness parameter determines whether the first element in sequence will be immediately displayed. |
ConcatList [ContentNode] | Generates a |
UnfoldConcatList Eagerness [ContentNode] | The same as ConcatList with the display behavior of UnfoldList |
Rudimentary support for styling
Describes which elements to apply the style to.
HeaderSelector Int | |
UniversalSelector | Applies to everything. |
TextSelector | |
SlideSelector |
data ElementStyle Source
ElementStyle | |
|
emptyPresentation :: Presentation Source
An empty presentation set to the default style with UTF8 encoding.
The default style.
emptyElementStyle :: ElementStyle Source
Completely empty element style.