pub struct BackdropFilterLayer { /* private fields */ }Expand description
A composited layer that applies a filter to the existing contents of the scene.
Implementations§
Source§impl BackdropFilterLayer
impl BackdropFilterLayer
Sourcepub fn new(app: &mut App) -> Handle<BackdropFilterLayer>
pub fn new(app: &mut App) -> Handle<BackdropFilterLayer>
Creates a backdrop filter layer.
The filter property must be non-null before the compositing phase of
the pipeline.
The blend_mode property defaults to BlendMode::SrcOver.
Sourcepub fn filter(self: Handle<Self>, app: &App) -> Option<&ImageFilter>
pub fn filter(self: Handle<Self>, app: &App) -> Option<&ImageFilter>
The filter to apply to the existing contents of the scene.
The scene must be explicitly recomposited after this property is changed (as described at
Layer).
Sourcepub fn set_filter(self: Handle<Self>, app: &mut App, value: Option<ImageFilter>)
pub fn set_filter(self: Handle<Self>, app: &mut App, value: Option<ImageFilter>)
See filter.
Sourcepub fn blend_mode(self: Handle<Self>, app: &App) -> BlendMode
pub fn blend_mode(self: Handle<Self>, app: &App) -> BlendMode
The blend mode to use to apply the filtered background content onto the background surface.
The default value of this property is BlendMode::SrcOver.
The scene must be explicitly recomposited after this property is changed (as described at
Layer).
Sourcepub fn set_blend_mode(self: Handle<Self>, app: &mut App, value: BlendMode)
pub fn set_blend_mode(self: Handle<Self>, app: &mut App, value: BlendMode)
See blend_mode.
Sourcepub fn backdrop_key(self: Handle<Self>, app: &App) -> Option<BackdropKey>
pub fn backdrop_key(self: Handle<Self>, app: &App) -> Option<BackdropKey>
The backdrop key that identifies the BackdropGroup this filter will apply to.
The default value for the backdrop key is None, meaning that it’s not part of a
BackdropGroup.
The scene must be explicitly recomposited after this property is changed (as described at
Layer).
Sourcepub fn set_backdrop_key(
self: Handle<Self>,
app: &mut App,
value: Option<BackdropKey>,
)
pub fn set_backdrop_key( self: Handle<Self>, app: &mut App, value: Option<BackdropKey>, )
See backdrop_key.
Trait Implementations§
Source§impl ContainerLayer for BackdropFilterLayer
impl ContainerLayer for BackdropFilterLayer
Source§fn container_layer_data(self: Handle<Self>, app: &App) -> &ContainerLayerData
fn container_layer_data(self: Handle<Self>, app: &App) -> &ContainerLayerData
Source§fn container_layer_data_mut(
self: Handle<Self>,
app: &mut App,
) -> &mut ContainerLayerData
fn container_layer_data_mut( self: Handle<Self>, app: &mut App, ) -> &mut ContainerLayerData
container_layer_data.Source§const AS_OFFSET: Option<fn() -> &'static OffsetLayerVTable> = None
const AS_OFFSET: Option<fn() -> &'static OffsetLayerVTable> = None
extends OffsetLayer;
container_layer_accessors!(offset) sets it. Dart’s layer is OffsetLayer.Source§fn as_container_layer(self: Handle<Self>) -> AnyContainerLayer
fn as_container_layer(self: Handle<Self>) -> AnyContainerLayer
ContainerLayer.Source§fn apply_transform(
self: Handle<Self>,
app: &App,
child: Option<AnyLayer>,
transform: &mut Matrix4,
)
fn apply_transform( self: Handle<Self>, app: &App, child: Option<AnyLayer>, transform: &mut Matrix4, )
Source§fn fire_composition_callbacks(
self: Handle<Self>,
app: &mut App,
include_children: bool,
)
fn fire_composition_callbacks( self: Handle<Self>, app: &mut App, include_children: bool, )
ContainerLayer._fireCompositionCallbacks.Source§fn supports_rasterization(self: Handle<Self>, app: &App) -> bool
fn supports_rasterization(self: Handle<Self>, app: &App) -> bool
ContainerLayer.supportsRasterization.Source§fn find_annotations(
self: Handle<Self>,
app: &App,
result: &mut AnnotationSearch,
local_position: Offset,
only_first: bool,
) -> bool
fn find_annotations( self: Handle<Self>, app: &App, result: &mut AnnotationSearch, local_position: Offset, only_first: bool, ) -> bool
ContainerLayer.findAnnotations.Source§fn redepth_children(self: Handle<Self>, app: &mut App)
fn redepth_children(self: Handle<Self>, app: &mut App)
ContainerLayer.redepthChildren.Source§fn add_to_scene(self: Handle<Self>, app: &mut App, builder: &mut SceneBuilder)
fn add_to_scene(self: Handle<Self>, app: &mut App, builder: &mut SceneBuilder)
ContainerLayer.addToScene.Source§impl Layer for BackdropFilterLayer
impl Layer for BackdropFilterLayer
Source§const AS_CONTAINER: Option<fn() -> &'static ContainerLayerVTable>
const AS_CONTAINER: Option<fn() -> &'static ContainerLayerVTable>
extends ContainerLayer; layer_accessors!(container)
sets it. Dart’s layer is ContainerLayer.Source§fn layer_data(self: Handle<Self>, app: &App) -> &LayerData
fn layer_data(self: Handle<Self>, app: &App) -> &LayerData
layer ([layer_accessors!]).Source§fn layer_data_mut(self: Handle<Self>, app: &mut App) -> &mut LayerData
fn layer_data_mut(self: Handle<Self>, app: &mut App) -> &mut LayerData
layer_data.Source§fn supports_rasterization(self: Handle<Self>, app: &App) -> bool
fn supports_rasterization(self: Handle<Self>, app: &App) -> bool
Scene.toImage. Read moreSource§fn dispose(self: Handle<Self>, app: &mut App)
fn dispose(self: Handle<Self>, app: &mut App)
Source§fn attach(self: Handle<Self>, app: &mut App, owner: HandleId)
fn attach(self: Handle<Self>, app: &mut App, owner: HandleId)
Source§fn detach(self: Handle<Self>, app: &mut App)
fn detach(self: Handle<Self>, app: &mut App)
Source§fn redepth_children(self: Handle<Self>, app: &mut App)
fn redepth_children(self: Handle<Self>, app: &mut App)
Source§fn find_annotations(
self: Handle<Self>,
app: &App,
result: &mut AnnotationSearch,
local_position: Offset,
only_first: bool,
) -> bool
fn find_annotations( self: Handle<Self>, app: &App, result: &mut AnnotationSearch, local_position: Offset, only_first: bool, ) -> bool
local_position. Read moreSource§fn add_to_scene(self: Handle<Self>, app: &mut App, builder: &mut SceneBuilder)
fn add_to_scene(self: Handle<Self>, app: &mut App, builder: &mut SceneBuilder)
Source§fn fire_composition_callbacks(
self: Handle<Self>,
app: &mut App,
include_children: bool,
)
fn fire_composition_callbacks( self: Handle<Self>, app: &mut App, include_children: bool, )
_fireCompositionCallbacks; ContainerLayer recurses into its children.