summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.ProtectedNode.lua
blob: c77f3f74494a9925c6ab66a1578b11b0f3e19d16 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---@meta

---@class cc.ProtectedNode :cc.Node
local ProtectedNode={ }
cc.ProtectedNode=ProtectedNode




---@overload fun(cc.Node:cc.Node,int:int):self
---@overload fun(cc.Node:cc.Node):self
---@overload fun(cc.Node:cc.Node,int:int,int:int):self
---@param child cc.Node
---@param localZOrder int
---@param tag int
---@return self
function ProtectedNode:addProtectedChild (child,localZOrder,tag) end
---* 
---@return self
function ProtectedNode:disableCascadeColor () end
---* Removes a child from the container by tag value. It will also cleanup all running actions depending on the cleanup parameter.<br>
---* param tag       An integer number that identifies a child node.<br>
---* param cleanup   true if all running actions and callbacks on the child node will be cleanup, false otherwise.
---@param tag int
---@param cleanup boolean
---@return self
function ProtectedNode:removeProtectedChildByTag (tag,cleanup) end
---* Reorders a child according to a new z value.<br>
---* param child     An already added child node. It MUST be already added.<br>
---* param localZOrder Z order for drawing priority. Please refer to setLocalZOrder(int)
---@param child cc.Node
---@param localZOrder int
---@return self
function ProtectedNode:reorderProtectedChild (child,localZOrder) end
---* Removes all children from the container, and do a cleanup to all running actions depending on the cleanup parameter.<br>
---* param cleanup   true if all running actions on all children nodes should be cleanup, false otherwise.<br>
---* js removeAllChildren<br>
---* lua removeAllChildren
---@param cleanup boolean
---@return self
function ProtectedNode:removeAllProtectedChildrenWithCleanup (cleanup) end
---* 
---@return self
function ProtectedNode:disableCascadeOpacity () end
---* Sorts the children array once before drawing, instead of every time when a child is added or reordered.<br>
---* This approach can improves the performance massively.<br>
---* note Don't call this manually unless a child added needs to be removed in the same frame
---@return self
function ProtectedNode:sortAllProtectedChildren () end
---* Gets a child from the container with its tag.<br>
---* param tag   An identifier to find the child node.<br>
---* return a Node object whose tag equals to the input parameter.
---@param tag int
---@return cc.Node
function ProtectedNode:getProtectedChildByTag (tag) end
---* Removes a child from the container. It will also cleanup all running actions depending on the cleanup parameter.<br>
---* param child     The child node which will be removed.<br>
---* param cleanup   true if all running actions and callbacks on the child node will be cleanup, false otherwise.
---@param child cc.Node
---@param cleanup boolean
---@return self
function ProtectedNode:removeProtectedChild (child,cleanup) end
---* Removes all children from the container with a cleanup.<br>
---* see `removeAllChildrenWithCleanup(bool)`.
---@return self
function ProtectedNode:removeAllProtectedChildren () end
---* Creates a ProtectedNode with no argument.<br>
---* return A instance of ProtectedNode.
---@return self
function ProtectedNode:create () end
---* 
---@param mask unsigned short
---@param applyChildren boolean
---@return self
function ProtectedNode:setCameraMask (mask,applyChildren) end
---* 
---@param globalZOrder float
---@return self
function ProtectedNode:setGlobalZOrder (globalZOrder) end
---* js NA
---@param renderer cc.Renderer
---@param parentTransform mat4_table
---@param parentFlags unsigned_int
---@return self
function ProtectedNode:visit (renderer,parentTransform,parentFlags) end
---* 
---@param parentOpacity unsigned_char
---@return self
function ProtectedNode:updateDisplayedOpacity (parentOpacity) end
---* 
---@param parentColor color3b_table
---@return self
function ProtectedNode:updateDisplayedColor (parentColor) end
---* 
---@return self
function ProtectedNode:cleanup () end
---* 
---@return self
function ProtectedNode:ProtectedNode () end