MiuixBackdrop class abstract

背景内容提供者。对应 Kotlin interface Backdrop

模糊组件(MiuixTextureBlur 等)通过它拿到"自己背后的内容"来做模糊。 阶段 5A 只实现 MiuixLayerBackdrop(图层快照捕获)。

Inheritance
Implementers

Constructors

MiuixBackdrop()

Properties

globalOffset Offset?
背景快照在全局(窗口)坐标系中的左上角位置。用于与模糊表面对齐。
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isCoordinatesDependent bool
是否需要布局坐标来正确定位(图层型 backdrop 为 true)。 对应 Kotlin isCoordinatesDependent
no setter
pixelRatio double
快照的设备像素比(快照按此比例录制)。
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapshot Image?
当前可用于取样的背景快照;未捕获时为 null。
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited