-
Notifications
You must be signed in to change notification settings - Fork 7
/
flags.go
36 lines (27 loc) · 1.07 KB
/
flags.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2018, The Goki Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ki
// Flags are bit flags for efficient core state of nodes -- see bitflag
// package for using these ordinal values to manipulate bit flag field.
type Flags int64 //enums:bitflag
const (
// Field indicates a node is a field in its parent node, not a child in children.
Field Flags = iota
// Updating flag is set at UpdateStart and cleared if we were the first
// updater at UpdateEnd.
Updating
// Deleted means this node has been deleted (removed from Parent)
// Set just prior to calling OnDelete()
Deleted
// Destroyed means this node has been destroyed.
// It should be skipped in all further processing, if there
// are remaining pointers to it.
Destroyed
// ChildAdded means one or more new children were added to the node.
ChildAdded
// ChildDeleted means one or more children were deleted from the node.
ChildDeleted
// ChildrenDeleted means all children were deleted.
ChildrenDeleted
)