Struct prototty_elements::Border [] [src]

pub struct Border<V: View> {
    pub child: V,
    pub title: Option<String>,
    pub padding: BorderPadding,
    pub chars: BorderChars,
    pub foreground_colour: Colour,
    pub background_colour: Colour,
    pub title_colour: Colour,
    pub bold_title: bool,
    pub underline_title: bool,
    pub bold_border: bool,
}

Fields

Methods

impl<V: View> Border<V>
[src]

[src]

[src]

Trait Implementations

impl<V: View> View for Border<V>
[src]

[src]

Update the cells in grid to describe how a type should be rendered. Implementations of view for low level ui components will typically involve updating cells directly. Implementations for higer level components, such as an entire application's ui, will typically call the view methed of lower level components which make up the ui. Read more

[src]

Returns the size in cells of the rectangle containing a ui element. This allows for the implementation of decorator ui components that render a border around some inner element. Read more