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

---@class cc.MenuItem :cc.Node
local MenuItem={ }
cc.MenuItem=MenuItem




---*  Enables or disables the item. 
---@param value boolean
---@return self
function MenuItem:setEnabled (value) end
---*  Activate the item. 
---@return self
function MenuItem:activate () end
---*  Returns whether or not the item is enabled. 
---@return boolean
function MenuItem:isEnabled () end
---*  The item was selected (not activated), similar to "mouse-over". 
---@return self
function MenuItem:selected () end
---*  Returns whether or not the item is selected. 
---@return boolean
function MenuItem:isSelected () end
---*  The item was unselected. 
---@return self
function MenuItem:unselected () end
---*  Returns the outside box. 
---@return rect_table
function MenuItem:rect () end
---* js NA
---@return string
function MenuItem:getDescription () end
---* js ctor
---@return self
function MenuItem:MenuItem () end