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

---@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