summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc/MenuItemToggle.lua
blob: db7cc146998eda9b82bd26ee916f575ba96fcc63 (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
---@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