summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc/MenuItemToggle.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-08-13 01:23:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-08-13 01:23:32 +0800
commit04fa96b7c0abba4d7cca03ed12ff3b65b3912e01 (patch)
treec0c8a2c0e92d0580280f838ba475875c7f82a73c /meta/3rd/Cocos4.0/library/cc/MenuItemToggle.lua
parentc30c5c2e267f6917600afe4f19e1e0d674bad9c6 (diff)
downloadlua-language-server-04fa96b7c0abba4d7cca03ed12ff3b65b3912e01.zip
fix #1431
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc/MenuItemToggle.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc/MenuItemToggle.lua50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc/MenuItemToggle.lua b/meta/3rd/Cocos4.0/library/cc/MenuItemToggle.lua
new file mode 100644
index 00000000..db7cc146
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc/MenuItemToggle.lua
@@ -0,0 +1,50 @@
+---@meta
+
+---@class cc.MenuItemToggle :cc.MenuItem
+local MenuItemToggle={ }
+cc.MenuItemToggle=MenuItemToggle
+
+
+
+
+---* Sets the array that contains the subitems.
+---@param items array_table
+---@return self
+function MenuItemToggle:setSubItems (items) end
+---* Initializes a menu item with a item.
+---@param item cc.MenuItem
+---@return boolean
+function MenuItemToggle:initWithItem (item) end
+---* Gets the index of the selected item.
+---@return unsigned_int
+function MenuItemToggle:getSelectedIndex () end
+---* Add more menu item.
+---@param item cc.MenuItem
+---@return self
+function MenuItemToggle:addSubItem (item) end
+---* Return the selected item.
+---@return cc.MenuItem
+function MenuItemToggle:getSelectedItem () end
+---* Sets the index of the selected item.
+---@param index unsigned_int
+---@return self
+function MenuItemToggle:setSelectedIndex (index) end
+---*
+---@param var boolean
+---@return self
+function MenuItemToggle:setEnabled (var) end
+---*
+---@return self
+function MenuItemToggle:cleanup () end
+---*
+---@return self
+function MenuItemToggle:activate () end
+---*
+---@return self
+function MenuItemToggle:unselected () end
+---*
+---@return self
+function MenuItemToggle:selected () end
+---* js ctor
+---@return self
+function MenuItemToggle:MenuItemToggle () end \ No newline at end of file