blob: 463c9b2f3a976e94de665decd35adeb5e1646031 (
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
|
---@class cc.Event :cc.Ref
local Event={ }
cc.Event=Event
---* Checks whether the event has been stopped.<br>
---* return True if the event has been stopped.
---@return boolean
function Event:isStopped () end
---* Gets the event type.<br>
---* return The event type.
---@return int
function Event:getType () end
---* Gets current target of the event.<br>
---* return The target with which the event associates.<br>
---* note It's only available when the event listener is associated with node.<br>
---* It returns 0 when the listener is associated with fixed priority.
---@return cc.Node
function Event:getCurrentTarget () end
---* Stops propagation for current event.
---@return self
function Event:stopPropagation () end
---* Constructor
---@param type int
---@return self
function Event:Event (type) end
|