Trait prototty::ViewSize [] [src]

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

Report the size of a T when rendered.

Required Methods

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.

Implementors