| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Layout.Inline.CSS
Description
Infrastructure for parsing & desugaring text related CSS properties.
Synopsis
- data CSSInline = CSSInline Text SpanOptions
- data ParagraphBuilder = ParagraphBuilder Text [Span]
- buildParagraph :: CSSInline -> ParagraphBuilder
- concatParagraph :: ParagraphBuilder -> ParagraphBuilder -> ParagraphBuilder
- finalizeParagraph :: ParagraphBuilder -> Font' -> Maybe Paragraph
Documentation
Document text with Balkón styling options, CSS stylable.
Constructors
| CSSInline Text SpanOptions |
Instances
| PropertyParser CSSInline Source # | |
Defined in Graphics.Layout.Inline.CSS | |
data ParagraphBuilder Source #
Helper datastructure for concatenating CSSInlines.
Constructors
| ParagraphBuilder Text [Span] |
buildParagraph :: CSSInline -> ParagraphBuilder Source #
Convert a CSSInline to a paragraph builder, with a span covering the entire text.
concatParagraph :: ParagraphBuilder -> ParagraphBuilder -> ParagraphBuilder Source #
Concatenate two ParagraphBuilders, adjusting the spans appropriately.
finalizeParagraph :: ParagraphBuilder -> Font' -> Maybe Paragraph Source #
Convert a builder + font to a Balkón paragraph.