blob: 3e86c06b4eaa50f78fd582839711b0d27a08a22f (
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
|
---@meta
---@class cc.Control :cc.Layer
local Control={ }
cc.Control=Control
---* Tells whether the control is enabled.
---@param bEnabled boolean
---@return self
function Control:setEnabled (bEnabled) end
---*
---@return int
function Control:getState () end
---* Sends action messages for the given control events.<br>
---* param controlEvents A bitmask whose set flags specify the control events for<br>
---* which action messages are sent. See "CCControlEvent" for bitmask constants.
---@param controlEvents int
---@return self
function Control:sendActionsForControlEvents (controlEvents) end
---* A Boolean value that determines the control selected state.
---@param bSelected boolean
---@return self
function Control:setSelected (bSelected) end
---*
---@return boolean
function Control:isEnabled () end
---* Updates the control layout using its current internal state.
---@return self
function Control:needsLayout () end
---*
---@return boolean
function Control:hasVisibleParents () end
---*
---@return boolean
function Control:isSelected () end
---* Returns a boolean value that indicates whether a touch is inside the bounds<br>
---* of the receiver. The given touch must be relative to the world.<br>
---* param touch A Touch object that represents a touch.<br>
---* return Whether a touch is inside the receiver's rect.
---@param touch cc.Touch
---@return boolean
function Control:isTouchInside (touch) end
---* A Boolean value that determines whether the control is highlighted.
---@param bHighlighted boolean
---@return self
function Control:setHighlighted (bHighlighted) end
---* Returns a point corresponding to the touch location converted into the<br>
---* control space coordinates.<br>
---* param touch A Touch object that represents a touch.
---@param touch cc.Touch
---@return vec2_table
function Control:getTouchLocation (touch) end
---*
---@return boolean
function Control:isHighlighted () end
---* Creates a Control object
---@return self
function Control:create () end
---*
---@param touch cc.Touch
---@param event cc.Event
---@return self
function Control:onTouchMoved (touch,event) end
---*
---@return boolean
function Control:isOpacityModifyRGB () end
---*
---@param bOpacityModifyRGB boolean
---@return self
function Control:setOpacityModifyRGB (bOpacityModifyRGB) end
---*
---@param touch cc.Touch
---@param event cc.Event
---@return self
function Control:onTouchCancelled (touch,event) end
---*
---@return boolean
function Control:init () end
---*
---@param touch cc.Touch
---@param event cc.Event
---@return self
function Control:onTouchEnded (touch,event) end
---*
---@param touch cc.Touch
---@param event cc.Event
---@return boolean
function Control:onTouchBegan (touch,event) end
---* js ctor
---@return self
function Control:Control () end
|