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
child: V
title: Option<String>
padding: BorderPadding
chars: BorderChars
foreground_colour: Colour
background_colour: Colour
title_colour: Colour
bold_title: bool
underline_title: bool
bold_border: bool
Methods
impl<V: View> Border<V>
[src]
Trait Implementations
impl<V: View> View for Border<V>
[src]
fn view<G: ViewGrid>(&self, offset: Vector2<i16>, depth: i16, grid: &mut G)
[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
fn size(&self) -> Vector2<u16>
[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