ToolTypeFilterNode



A ValueNode for filtering out a branch of a behavior graph unless this stroke's tool type is in the specified set.

Summary

Public constructors

ToolTypeFilterNode(
    enabledToolTypes: Set<InputToolType>,
    input: ValueNode
)

Creates a ToolTypeFilterNode that filters out a branch of a behavior graph unless this stroke's tool type is in the specified set.

Cmn

Public functions

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

Public properties

Set<InputToolType>

The set of tool types that should be enabled.

Cmn
ValueNode

The input node that produces the value filtered if the tool type is not enabled.

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

ToolTypeFilterNode

ToolTypeFilterNode(
    enabledToolTypes: Set<InputToolType>,
    input: ValueNode
)

Creates a ToolTypeFilterNode that filters out a branch of a behavior graph unless this stroke's tool type is in the specified set.

Parameters
enabledToolTypes: Set<InputToolType>

the set of tool types that should be enabled

input: ValueNode

input node that produces the value filtered if the tool type is not enabled

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

enabledToolTypes

val enabledToolTypesSet<InputToolType>

The set of tool types that should be enabled.

input

val inputValueNode

The input node that produces the value filtered if the tool type is not enabled.