Node
The abstract base class of all SceneGraph nodes and the equivalent of the BrightScript roSGNode component. See roSGNode for supported interfaces.
Node class objects do not draw anything and are skipped in the render traversal of the SceneGraph node tree. The Node class provides the core parenting and key focus management functionality used by all nodes.
Fields
| Field | Type | Default | Access Permission | Description | ||||||||||||||||||||
| id | string | "" | READ_WRITE | Adds a dictionary entry that allows the node to be retrieved with [ifSGNodeDict](doc:ifsgnodedict) findNode() function. | ||||||||||||||||||||
| focusedChild | N/A | N/A | READ_WRITE | When a node or one of its children gains or loses the keyboard focus, the focusedChild field will be set and call its observer functions. In the observer function, typically, you use [ifSGNodeFocus](doc:ifsgnodefocus) functions to query whether this node or some other node has the key focus or is in the key focus chain. Accessing the value of the field will result in script errors. | ||||||||||||||||||||
| focusable | Boolean | false | READ_WRITE | Provides a hint as to whether or not this node can take the key focus. | ||||||||||||||||||||
| change | associative array | { Index1: 0, Index2: 0, Operation: none } | READ_ONLY | Operations affecting the set of children of a Node are recorded in this field if, and only if, this field has been observed. The field associative array indicates the operation and two indexes, index1 and index 2, involved in the change. The operation is denoted by these value strings:
|
Updated 3 months ago
