Skip to main content

SelectionScope

Trait SelectionScope 

Source
pub trait SelectionScope<R: GridRow>: 'static {
    // Required method
    fn resolve(
        &self,
        context: &SelectionScopeContext<'_, R>,
    ) -> ScopedSelection<R::Key>;
}
Expand description

Which selected rows and cells a command acts on: Enter, a double click, the primary menu command, copying. Called once per command on the UI thread.

The default is ProjectionScope: the selection within the rows on screen. StoreScope also takes selected rows a filter hides.

Required Methods§

Source

fn resolve( &self, context: &SelectionScopeContext<'_, R>, ) -> ScopedSelection<R::Key>

The rows and cells, in the order the command sees them.

Implementors§