HazeEffectRuntimeDrawScope
Built-in-only semantic draw capability.
Source geometry and layers remain owned by core. Built-ins can record the selected input into their own target DrawScope without receiving source handles.
Properties
Coroutine scope cancelled when the modifier node detaches.
Whether the selected input currently contains drawable content.
Opaque identity of the current input capture, or null when no input is drawable.
Offset from the effect layer origin to the modifier origin.
Bounds of the modifier in the current effect layer.
Current size of the modifier carrying the effect.
Input-sampling policy supplied to the typed hazeEffect modifier.
Functions
Records the effect input of context, scaled by scaleFactor, into existingLayer (or a new layer when it is null or released) over the shader backgroundShader returns or, without one, backgroundColor.
Returns the current value of local and observes it for redraw.
Draws the modifier's selected source-backed or own-content input.
Draws the selected input into this DrawScope, in the coordinate space of the expanded effect layer, where the modifier sits at layerOffset. A caller drawing in modifier space must translate by -layerOffset first.
Draws block, recorded at scaledSize, scaled up to fill this scope and translated by offset. Clips to this scope when clip is true.
Draws content recorded with a per-axis capture scale back at its original geometry.
Schedules a redraw of the effect.
Returns the density currently associated with the modifier node.
Returns the graphics context used to allocate and release graphics layers.
Returns the platform context associated with the modifier node.
Provides a temporary graphics layer to a built-in renderer and releases it after block.