Skip to main content

GridViewStyle

Trait GridViewStyle 

Source
pub trait GridViewStyle: 'static {
    // Provided methods
    fn focus_ring(&self) -> GridFocusRingRecipe { ... }
    fn marquee(&self) -> GridMarqueeRecipe { ... }
    fn insertion(&self) -> GridInsertionRecipe { ... }
    fn pinned_header_surface(&self) -> SurfaceRole { ... }
}
Expand description

Tier-3 style protocol for GridView. Every method has a default returning the stock recipe, so a custom style only overrides the decoration it cares about.

Provided Methods§

Source

fn focus_ring(&self) -> GridFocusRingRecipe

Focus-ring chrome painted around the keyboard-focused tile.

Source

fn marquee(&self) -> GridMarqueeRecipe

Rubber-band marquee rectangle chrome.

Source

fn insertion(&self) -> GridInsertionRecipe

Drag-reorder insertion-bar chrome.

Source

fn pinned_header_surface(&self) -> SurfaceRole

Opaque background surface role for the sticky pinned section header.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§