struct Sheen::BorderPainter

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(style : Style) #

[View source]

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.


[View source]