mirror of https://github.com/axmolengine/axmol.git
53 lines
1.4 KiB
Lua
53 lines
1.4 KiB
Lua
|
|
--------------------------------
|
|
-- @module MenuItem
|
|
-- @extend Node
|
|
-- @parent_module cc
|
|
|
|
--------------------------------
|
|
-- enables or disables the item
|
|
-- @function [parent=#MenuItem] setEnabled
|
|
-- @param self
|
|
-- @param #bool value
|
|
|
|
--------------------------------
|
|
-- Activate the item
|
|
-- @function [parent=#MenuItem] activate
|
|
-- @param self
|
|
|
|
--------------------------------
|
|
-- returns whether or not the item is enabled
|
|
-- @function [parent=#MenuItem] isEnabled
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- The item was selected (not activated), similar to "mouse-over"
|
|
-- @function [parent=#MenuItem] selected
|
|
-- @param self
|
|
|
|
--------------------------------
|
|
-- returns whether or not the item is selected
|
|
-- @function [parent=#MenuItem] isSelected
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- The item was unselected
|
|
-- @function [parent=#MenuItem] unselected
|
|
-- @param self
|
|
|
|
--------------------------------
|
|
-- Returns the outside box
|
|
-- @function [parent=#MenuItem] rect
|
|
-- @param self
|
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#MenuItem] getDescription
|
|
-- @param self
|
|
-- @return string#string ret (return value: string)
|
|
|
|
return nil
|