[][src]Trait prototty_render::ViewSize

pub trait ViewSize<T: ?Sized> {
    fn size(&mut self, data: &T) -> Size;
}

Report the size of a T when rendered.

Required methods

fn size(&mut self, data: &T) -> Size

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.

Loading content...

Implementors

Loading content...