summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.Event.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.Event.lua')
-rw-r--r--meta/3rd/Cocos4.0/cc.Event.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.Event.lua b/meta/3rd/Cocos4.0/cc.Event.lua
new file mode 100644
index 00000000..463c9b2f
--- /dev/null
+++ b/meta/3rd/Cocos4.0/cc.Event.lua
@@ -0,0 +1,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 \ No newline at end of file