summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/ccs.DisplayManager.lua
blob: 64fa7b3abfe4d7df6067aaee06781195c3c82eb9 (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
---@meta

---@class ccs.DisplayManager :cc.Ref
local DisplayManager={ }
ccs.DisplayManager=DisplayManager




---* 
---@return cc.Node
function DisplayManager:getDisplayRenderNode () end
---* 
---@return vec2_table
function DisplayManager:getAnchorPointInPoints () end
---* 
---@return int
function DisplayManager:getDisplayRenderNodeType () end
---* 
---@param index int
---@return self
function DisplayManager:removeDisplay (index) end
---* 
---@param force boolean
---@return self
function DisplayManager:setForceChangeDisplay (force) end
---* 
---@param bone ccs.Bone
---@return boolean
function DisplayManager:init (bone) end
---* 
---@return size_table
function DisplayManager:getContentSize () end
---* 
---@return rect_table
function DisplayManager:getBoundingBox () end
---@overload fun(ccs.DisplayData0:cc.Node,int:int):self
---@overload fun(ccs.DisplayData:ccs.DisplayData,int:int):self
---@param displayData ccs.DisplayData
---@param index int
---@return self
function DisplayManager:addDisplay (displayData,index) end
---@overload fun(float:float,float:float):self
---@overload fun(float0:vec2_table):self
---@param x float
---@param y float
---@return boolean
function DisplayManager:containPoint (x,y) end
---* Change display by index. You can just use this method to change display in the display list.<br>
---* The display list is just used for this bone, and it is the displays you may use in every frame.<br>
---* Note : if index is the same with prev index, the method will not effect<br>
---* param index The index of the display you want to change<br>
---* param force If true, then force change display to specified display, or current display will set to  display index edit in the flash every key frame.
---@param index int
---@param force boolean
---@return self
function DisplayManager:changeDisplayWithIndex (index,force) end
---* 
---@param name string
---@param force boolean
---@return self
function DisplayManager:changeDisplayWithName (name,force) end
---* 
---@return boolean
function DisplayManager:isForceChangeDisplay () end
---* 
---@return int
function DisplayManager:getCurrentDisplayIndex () end
---* 
---@return vec2_table
function DisplayManager:getAnchorPoint () end
---* 
---@return array_table
function DisplayManager:getDecorativeDisplayList () end
---* Determines if the display is visible<br>
---* see setVisible(bool)<br>
---* return true if the node is visible, false if the node is hidden.
---@return boolean
function DisplayManager:isVisible () end
---* Sets whether the display is visible<br>
---* The default value is true, a node is default to visible<br>
---* param visible   true if the node is visible, false if the node is hidden.
---@param visible boolean
---@return self
function DisplayManager:setVisible (visible) end
---* 
---@param bone ccs.Bone
---@return self
function DisplayManager:create (bone) end
---* 
---@return self
function DisplayManager:DisplayManager () end