Trait EntryBody
pub trait EntryBody {
// Required methods
fn height(&self, theme: &Theme) -> f64;
fn paint(&self, ctx: &mut PaintCtx<'_>, rect: Rect);
}Expand description
The content of one History row, painted by the app inside the row’s content slot (beside the author, before the time).
Required Methods§
fn height(&self, theme: &Theme) -> f64
fn height(&self, theme: &Theme) -> f64
The row height this content needs under theme, in logical pixels.
The timeline lays rows out without a renderer, so this is measured
from the theme’s text roles and spacing; the content fits itself
into the rect Self::paint is given.