2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ControlSwitch
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Control
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlSwitch] setEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: setOn(bool)
|
|
|
|
--
|
|
|
|
-- overload function: setOn(bool, bool)
|
|
|
|
--
|
|
|
|
-- @function [parent=#ControlSwitch] setOn
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool bool
|
|
|
|
-- @param #bool bool
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlSwitch] isOn
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-03-25 13:50:20 +08:00
|
|
|
-- overload function: initWithMaskSprite(cc.Sprite, cc.Sprite, cc.Sprite, cc.Sprite, cc.Label, cc.Label)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
|
|
|
-- overload function: initWithMaskSprite(cc.Sprite, cc.Sprite, cc.Sprite, cc.Sprite)
|
|
|
|
--
|
|
|
|
-- @function [parent=#ControlSwitch] initWithMaskSprite
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Sprite sprite
|
|
|
|
-- @param #cc.Sprite sprite
|
|
|
|
-- @param #cc.Sprite sprite
|
|
|
|
-- @param #cc.Sprite sprite
|
2014-03-25 13:50:20 +08:00
|
|
|
-- @param #cc.Label label
|
|
|
|
-- @param #cc.Label label
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return bool#bool ret (retunr value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlSwitch] hasMoved
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlSwitch] locationFromTouch
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
2014-05-15 01:16:02 +08:00
|
|
|
-- @return Vec2#Vec2 ret (return value: cc.Vec2)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- overload function: create(cc.Sprite, cc.Sprite, cc.Sprite, cc.Sprite)
|
|
|
|
--
|
2014-03-25 13:50:20 +08:00
|
|
|
-- overload function: create(cc.Sprite, cc.Sprite, cc.Sprite, cc.Sprite, cc.Label, cc.Label)
|
2014-03-10 14:04:58 +08:00
|
|
|
--
|
|
|
|
-- @function [parent=#ControlSwitch] create
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Sprite sprite
|
|
|
|
-- @param #cc.Sprite sprite
|
|
|
|
-- @param #cc.Sprite sprite
|
|
|
|
-- @param #cc.Sprite sprite
|
2014-03-25 13:50:20 +08:00
|
|
|
-- @param #cc.Label label
|
|
|
|
-- @param #cc.Label label
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return ControlSwitch#ControlSwitch ret (retunr value: cc.ControlSwitch)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlSwitch] onTouchMoved
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlSwitch] onTouchEnded
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlSwitch] onTouchCancelled
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlSwitch] onTouchBegan
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @param #cc.Event event
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @function [parent=#ControlSwitch] ControlSwitch
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|