diff options
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.Event.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/library/cc.Event.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.Event.lua b/meta/3rd/Cocos4.0/library/cc.Event.lua new file mode 100644 index 00000000..7055f7a0 --- /dev/null +++ b/meta/3rd/Cocos4.0/library/cc.Event.lua @@ -0,0 +1,30 @@ +---@meta + +---@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 |