2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module MenuItemToggle
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend MenuItem
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Sets the array that contains the subitems.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemToggle] setSubItems
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #array_table items
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemToggle#MenuItemToggle self (return value: cc.MenuItemToggle)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Gets the index of the selected item.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemToggle] getSelectedIndex
|
|
|
|
-- @param self
|
|
|
|
-- @return unsigned int#unsigned int ret (return value: unsigned int)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Add more menu item.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemToggle] addSubItem
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.MenuItem item
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemToggle#MenuItemToggle self (return value: cc.MenuItemToggle)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Return the selected item.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemToggle] getSelectedItem
|
|
|
|
-- @param self
|
|
|
|
-- @return MenuItem#MenuItem ret (return value: cc.MenuItem)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Sets the index of the selected item.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemToggle] setSelectedIndex
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #unsigned int index
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemToggle#MenuItemToggle self (return value: cc.MenuItemToggle)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MenuItemToggle] setEnabled
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool var
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemToggle#MenuItemToggle self (return value: cc.MenuItemToggle)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MenuItemToggle] activate
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemToggle#MenuItemToggle self (return value: cc.MenuItemToggle)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MenuItemToggle] unselected
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemToggle#MenuItemToggle self (return value: cc.MenuItemToggle)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MenuItemToggle] selected
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemToggle#MenuItemToggle self (return value: cc.MenuItemToggle)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|