struct
Sheen::BorderPainter
- Sheen::BorderPainter
- Struct
- Value
- Object
Overview
Draws a Style's border around already-shaped content. A short-lived collaborator is constructed per render.
Reads geometry and colors through the bound Style's public getters.
Defined in:
sheen/border_painter.crConstructors
Instance Method Summary
-
#apply(content : String) : String
Draws the border around already-shaped content.
Constructor Detail
Instance Method Detail
def apply(content : String) : String
#
Draws the border around already-shaped content. Uses explicit side flags or implicit all-sides when only a style is set. Corners are dropped when the adjacent side is hiddern. Each edge and corner carries its own color.