SeslFadingEdgeShaderController

Controller for AGSL-based fading edge shaders used by SESL scrollable widgets.

Constructors

Link copied to clipboard
constructor()

Properties

Functions

Link copied to clipboard
open fun applyColorToAllShaders(color: Int)
Applies the specified color to all managed shaders.
Link copied to clipboard
Clears the bottom runtime shader.
Link copied to clipboard
Clears the extra bottom runtime shader.
Link copied to clipboard
Clears the extra top runtime shader.
Link copied to clipboard
open fun clearShaders()
Clears all managed runtime shaders.
Link copied to clipboard
open fun clearTopShader()
Clears the top runtime shader.
Link copied to clipboard
@Nullable
open fun createRuntimeShader(color: Int, startAlpha: Float, interpolator: Array<Float>): @Nullable RuntimeShader
Creates an AGSL RuntimeShader with specified color, start alpha, and interpolator.
Link copied to clipboard
@Nullable
open fun getBottomShader(): @Nullable RuntimeShader
Returns the bottom runtime shader.
Link copied to clipboard
Returns default bottom interpolator for specified slot index.
Link copied to clipboard
Returns default top interpolator for specified slot index.
Link copied to clipboard
@Nullable
open fun getExtraBottomShader(): @Nullable RuntimeShader
Returns the extra bottom runtime shader.
Link copied to clipboard
@Nullable
open fun getExtraTopShader(): @Nullable RuntimeShader
Returns the extra top runtime shader.
Link copied to clipboard
@Nullable
open fun getGradientForEdge(isTop: Boolean): @Nullable Shader
Returns the active gradient shader for the top or bottom edge.
Link copied to clipboard
@Nullable
open fun getTopShader(): @Nullable RuntimeShader
Returns the top runtime shader.
Link copied to clipboard
Initializes extra bottom runtime shader with specified color.
Link copied to clipboard
open fun initializeExtraTopShader(color: Int)
Initializes extra top runtime shader with specified color.
Link copied to clipboard
open fun initializeShaders(color: Int)
Initializes top and bottom runtime shaders with specified color.
Link copied to clipboard
Returns whether bottom fading edge expansion is enabled.
Link copied to clipboard
Returns whether top fading edge expansion is enabled.
Link copied to clipboard
open fun setBottomFadingEdgeOverrides(@Nullable overrides: @Nullable SeslBottomFadingEdgeOverrides)
Sets bottom fading edge overrides.
Link copied to clipboard
Sets whether bottom fading edge should be expanded.
Link copied to clipboard
Sets whether top fading edge should be expanded.
Link copied to clipboard
Sets whether legacy transfer mode should be forced.
Link copied to clipboard
open fun setTopFadingEdgeOverrides(@Nullable overrides: @Nullable SeslTopFadingEdgeOverrides)
Sets top fading edge overrides.
Link copied to clipboard
open fun updateBottomShaderType(overlapped: Boolean, isTaskBarAvailable: Boolean)
Updates bottom shader parameters according to overlapping and taskbar state.
Link copied to clipboard
open fun updateShaderColor(shader: RuntimeShader, color: Int)
Updates shader uniform color.
Link copied to clipboard
open fun updateShaderDitherStrength(shader: RuntimeShader, ditherStrength: Float)
Updates shader dither strength uniform.
Link copied to clipboard
open fun updateShaderInterpolator(shader: RuntimeShader, interpolator: Array<Float>)
Updates shader easing interpolator uniform.
Link copied to clipboard
open fun updateShaderStartAlpha(shader: RuntimeShader, startAlpha: Float)
Updates shader start alpha uniform.
Link copied to clipboard
open fun updateTopShaderType(overlapped: Boolean)
Updates top shader parameters according to overlapping state.