TargetNode



A TerminalNode that consumes a single input to affect a scalar brush tip property.

Summary

Nested types

List of scalar tip properties that can be modified by a androidx.ink.brush.BrushBehavior.

Public constructors

TargetNode(
    target: TargetNode.Target,
    targetModifierRangeStart: Float,
    targetModifierRangeEnd: Float,
    input: ValueNode
)

Creates a TargetNode that consumes a single input to affect a scalar brush tip property.

Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

ValueNode

The input node that produces the value used to affect the target.

Cmn
TargetNode.Target

The brush tip property to affect.

Cmn
Float

The end of the range of the input value that should affect the target property.

Cmn
Float

The start of the range of the input value that should affect the target property.

Cmn

Inherited properties

From androidx.ink.brush.behavior.Node
List<ValueNode>

The ordered list of inputs that this node directly depends on.

Cmn

Public constructors

TargetNode

TargetNode(
    target: TargetNode.Target,
    targetModifierRangeStart: Float,
    targetModifierRangeEnd: Float,
    input: ValueNode
)

Creates a TargetNode that consumes a single input to affect a scalar brush tip property.

Parameters
target: TargetNode.Target

the brush tip property to affect

targetModifierRangeStart: Float

start of the range of the input value that should affect the target property

targetModifierRangeEnd: Float

end of the range of the input value that should affect the target property

input: ValueNode

input node that produces the value used to affect the target

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

input

val inputValueNode

The input node that produces the value used to affect the target.

target

val targetTargetNode.Target

The brush tip property to affect.

targetModifierRangeEnd

val targetModifierRangeEndFloat

The end of the range of the input value that should affect the target property.

targetModifierRangeStart

val targetModifierRangeStartFloat

The start of the range of the input value that should affect the target property.