pub struct ImageFilterLayer { /* private fields */ }Expand description
A composite layer that applies an ImageFilter to its children.
Implementations§
Source§impl ImageFilterLayer
impl ImageFilterLayer
Sourcepub fn new(app: &mut App) -> Handle<ImageFilterLayer>
pub fn new(app: &mut App) -> Handle<ImageFilterLayer>
Creates a layer that applies an ImageFilter to its children.
The image_filter property must be non-null before the compositing
phase of the pipeline.
Sourcepub fn image_filter(self: Handle<Self>, app: &App) -> Option<&ImageFilter>
pub fn image_filter(self: Handle<Self>, app: &App) -> Option<&ImageFilter>
The image filter to apply to children.
The scene must be explicitly recomposited after this property is changed (as described at
Layer).
Sourcepub fn set_image_filter(self: Handle<Self>, app: &mut App, value: ImageFilter)
pub fn set_image_filter(self: Handle<Self>, app: &mut App, value: ImageFilter)
See image_filter.
Trait Implementations§
Source§impl ContainerLayer for ImageFilterLayer
impl ContainerLayer for ImageFilterLayer
Source§const AS_OFFSET: Option<fn() -> &'static OffsetLayerVTable>
const AS_OFFSET: Option<fn() -> &'static OffsetLayerVTable>
The offset table when this type
extends OffsetLayer;
container_layer_accessors!(offset) sets it. Dart’s layer is OffsetLayer.Source§fn container_layer_data(self: Handle<Self>, app: &App) -> &ContainerLayerData
fn container_layer_data(self: Handle<Self>, app: &App) -> &ContainerLayerData
Mixin field access.
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
See
container_layer_data.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, )
Applies the transform that would be applied when compositing the given child to the
given matrix. Read more
Source§fn as_container_layer(self: Handle<Self>) -> AnyContainerLayer
fn as_container_layer(self: Handle<Self>) -> AnyContainerLayer
Dart’s implicit upcast of a concrete layer to
ContainerLayer.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 ImageFilterLayer
impl Layer for ImageFilterLayer
Source§const AS_CONTAINER: Option<fn() -> &'static ContainerLayerVTable>
const AS_CONTAINER: Option<fn() -> &'static ContainerLayerVTable>
The container table when this type
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
Dart’s base-class fields, held under the field
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
See
layer_data.Source§fn supports_rasterization(self: Handle<Self>, app: &App) -> bool
fn supports_rasterization(self: Handle<Self>, app: &App) -> bool
Whether or not this layer, or any child layers, can be rasterized with
Scene.toImage. Read moreSource§fn dispose(self: Handle<Self>, app: &mut App)
fn dispose(self: Handle<Self>, app: &mut App)
Clears any retained resources that this layer holds. Read more
Source§fn attach(self: Handle<Self>, app: &mut App, owner: HandleId)
fn attach(self: Handle<Self>, app: &mut App, owner: HandleId)
Mark this layer as attached to the given owner. Read more
Source§fn detach(self: Handle<Self>, app: &mut App)
fn detach(self: Handle<Self>, app: &mut App)
Mark this layer as detached from its owner. Read more
Source§fn redepth_children(self: Handle<Self>, app: &mut App)
fn redepth_children(self: Handle<Self>, app: &mut App)
Adjust the depth of this node’s children, if any. Read more
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
Search this layer and its subtree for annotations of the searched type at the location
described by
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)
Override this method to upload this layer to the engine.
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, )
Dart’s
_fireCompositionCallbacks; ContainerLayer recurses into its children.Source§fn debug_fill_properties(
self: Handle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: Handle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
debugFillProperties: the properties this class shows in a dump, after Layer’s
(engine layer, handles), which the framework adds first, since a trait default cannot call
super.Source§impl OffsetLayerMixin for ImageFilterLayer
impl OffsetLayerMixin for ImageFilterLayer
Source§fn offset_layer_data(self: Handle<Self>, app: &App) -> &OffsetLayerData
fn offset_layer_data(self: Handle<Self>, app: &App) -> &OffsetLayerData
Mixin field access.
Source§fn offset_layer_data_mut(
self: Handle<Self>,
app: &mut App,
) -> &mut OffsetLayerData
fn offset_layer_data_mut( self: Handle<Self>, app: &mut App, ) -> &mut OffsetLayerData
See
offset_layer_data.Source§fn as_offset_layer(self: Handle<Self>) -> AnyOffsetLayer
fn as_offset_layer(self: Handle<Self>) -> AnyOffsetLayer
Dart’s implicit upcast of a concrete layer to
OffsetLayer.Source§fn offset(self: Handle<Self>, app: &App) -> Offset
fn offset(self: Handle<Self>, app: &App) -> Offset
Offset from parent in the parent’s coordinate system.
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
OffsetLayer.findAnnotations.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, )
OffsetLayer.applyTransform.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)
OffsetLayer.addToScene.Auto Trait Implementations§
impl !RefUnwindSafe for ImageFilterLayer
impl !Send for ImageFilterLayer
impl !Sync for ImageFilterLayer
impl !UnwindSafe for ImageFilterLayer
impl Forget for ImageFilterLayer
impl Freeze for ImageFilterLayerwhere
*const u8 is !null: Freeze,
PhantomData<(u64, Rc<dyn Fn(&mut App, AnyLayer)>)>: Freeze,
NonZero<u32>: Freeze,
&'static LayerVTable: Freeze,
&'static ContainerLayerVTable: Freeze,
*const ArcInner<ContainerLayer> is !null: Freeze,
PhantomData<ArcInner<ContainerLayer>>: Freeze,
*const ArcInner<ImageFilter> is !null: Freeze,
PhantomData<ArcInner<ImageFilter>>: Freeze,
*const ArcInner<RuntimeEffect> is !null: Freeze,
PhantomData<ArcInner<RuntimeEffect>>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
PhantomData<EffectImage>: Freeze,
PhantomData<(String, f64)>: Freeze,
impl Move for ImageFilterLayer
impl Unpin for ImageFilterLayer
impl UnsafeUnpin for ImageFilterLayerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(u64, Rc<dyn Fn(&mut App, AnyLayer)>)>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static LayerVTable: UnsafeUnpin,
&'static ContainerLayerVTable: UnsafeUnpin,
*const ArcInner<ContainerLayer> is !null: UnsafeUnpin,
PhantomData<ArcInner<ContainerLayer>>: UnsafeUnpin,
*const ArcInner<ImageFilter> is !null: UnsafeUnpin,
PhantomData<ArcInner<ImageFilter>>: UnsafeUnpin,
*const ArcInner<RuntimeEffect> is !null: UnsafeUnpin,
PhantomData<ArcInner<RuntimeEffect>>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
PhantomData<EffectImage>: UnsafeUnpin,
PhantomData<(String, f64)>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more