cattrap-0.1.0.0: Lays out boxes according to the CSS Box Model.
Safe HaskellNone
LanguageHaskell2010

Graphics.Layout.Inline.CSS

Description

Infrastructure for parsing & desugaring text related CSS properties.

Synopsis

Documentation

data CSSInline Source #

Document text with Balkón styling options, CSS stylable.

Constructors

CSSInline Text SpanOptions 

Instances

Instances details
PropertyParser CSSInline Source # 
Instance details

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.