Trait prototty::ViewSize
[−]
[src]
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.