Module prototty_elements::border [] [src]

Borders around other elements

Structs

Border

Decorate another element with a border. The child element must implement View and ViewSize, and can be accessed via the child field. It's possible to give the border a title, in which case the text appears in the top-left corner.

BorderChars

The characters comprising a border. By default, borders are made of unicode box-drawing characters, but they can be changed to arbitrary characters via this struct.

BorderPadding

The space in cells between the edge of the bordered area and the element inside.