struct
Sheen::StylePainter
- Sheen::StylePainter
- Struct
- Value
- Object
Overview
Renders a Style to a string. A short-lived collaborator constructed per render.
The pipeline is a sstateless transform over the bound and immutable Style, read through its getters.
Defined in:
sheen/style_painter.crConstructors
Instance Method Summary
-
#render(strings : Array(String)) : String
Renders strings through the bound style.
Constructor Detail
Instance Method Detail
def render(strings : Array(String)) : String
#
Renders strings through the bound style. Joins bound content, applies transforms, normalizes, applies the SGR core, shapes the block (padding, height, alignment, border, margins), then applies width+height limits.