pub struct BackdropOp {
pub filter: Arc<Filter>,
pub clip: BezPath,
pub bounds: Rect,
pub source: Rect,
}Expand description
One backdrop-filter layer: blur what is behind it, inside clip.
Every geometry here is device space. The planner is fed by a backend that has already applied the layer transform, because the whole point of the occupancy test below is comparing regions from different parts of the tree against each other, and they are only comparable once flattened.
Fields§
§filter: Arc<Filter>The filter graph to run over the backdrop.
clip: BezPathThe shape the filtered backdrop is drawn through.
bounds: RectDevice-space bounding box of clip. What the result covers.
source: RectWhat the filter has to read to produce bounds.
Wider than bounds by the filter’s expansion, roughly 3 standard
deviations for a gaussian: a blurred pixel at the edge of the panel
samples from outside it. This, not bounds, is what the occupancy test
uses, because a fill landing just outside the panel still changes the
pixels inside it.
Trait Implementations§
Source§impl Clone for BackdropOp
impl Clone for BackdropOp
Source§fn clone(&self) -> BackdropOp
fn clone(&self) -> BackdropOp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more