Trait ModelClipIteratorFactory

Source
pub trait ModelClipIteratorFactory {
    // Required methods
    fn get_clip_iterator<'a>(
        &'a self,
        ctx: &'a Context,
        cell_metrics: &'a CellMetrics,
    ) -> ModelClipIterator<'_> ;
    fn get_row_view<'a>(
        &'a self,
        ctx: &'a Context,
        cell_metrics: &'a CellMetrics,
        col: usize,
    ) -> RowView<'a>;
}

Required Methods§

Source

fn get_clip_iterator<'a>( &'a self, ctx: &'a Context, cell_metrics: &'a CellMetrics, ) -> ModelClipIterator<'_>

Source

fn get_row_view<'a>( &'a self, ctx: &'a Context, cell_metrics: &'a CellMetrics, col: usize, ) -> RowView<'a>

Implementors§

Source§

impl ModelClipIteratorFactory for UiModel

Clip implemented as top - 1/bot + 1 this is because in some cases(like ‘g’ character) drawing character does not fit to calculated bounds and if one line must be repainted - also previous and next line must be repainted to