2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ControlSlider
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Control
|
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
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] setBackgroundSprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Sprite var
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ControlSlider] getMaximumAllowedValue
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2015-03-17 14:28:14 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @overload self, cc.Sprite, cc.Sprite, cc.Sprite, cc.Sprite
|
|
|
|
-- @overload self, cc.Sprite, cc.Sprite, cc.Sprite
|
|
|
|
-- @function [parent=#ControlSlider] initWithSprites
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Sprite backgroundSprite
|
|
|
|
-- @param #cc.Sprite progressSprite
|
|
|
|
-- @param #cc.Sprite thumbSprite
|
|
|
|
-- @param #cc.Sprite selectedThumbSprite
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ControlSlider] getMinimumAllowedValue
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] getMaximumValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] getSelectedThumbSprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @return Sprite#Sprite ret (return value: cc.Sprite)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] setProgressSprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #cc.Sprite var
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] setMaximumValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #float val
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] getMinimumValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @return float#float ret (return value: float)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] setThumbSprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #cc.Sprite var
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] getValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @return float#float ret (return value: float)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] getBackgroundSprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @return Sprite#Sprite ret (return value: cc.Sprite)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] getThumbSprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
|
|
|
-- @return Sprite#Sprite ret (return value: cc.Sprite)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] setValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #float val
|
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] locationFromTouch
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] setMinimumValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #float val
|
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] setMinimumAllowedValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #float var
|
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ControlSlider] getProgressSprite
|
|
|
|
-- @param self
|
|
|
|
-- @return Sprite#Sprite ret (return value: cc.Sprite)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlSlider] setSelectedThumbSprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Sprite var
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ControlSlider] setMaximumAllowedValue
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float var
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, cc.Sprite, cc.Sprite, cc.Sprite
|
|
|
|
-- @overload self, char, char, char
|
|
|
|
-- @overload self, char, char, char, char
|
|
|
|
-- @overload self, cc.Sprite, cc.Sprite, cc.Sprite, cc.Sprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ControlSlider] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Sprite backgroundSprite
|
|
|
|
-- @param #cc.Sprite pogressSprite
|
|
|
|
-- @param #cc.Sprite thumbSprite
|
|
|
|
-- @param #cc.Sprite selectedThumbSprite
|
2014-10-17 22:56:22 +08:00
|
|
|
-- @return ControlSlider#ControlSlider ret (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-03-17 14:28:14 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ControlSlider] isTouchInside
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Touch touch
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ControlSlider] setEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool enabled
|
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ControlSlider] needsLayout
|
|
|
|
-- @param self
|
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-31 12:01:57 +08:00
|
|
|
-- js ctor<br>
|
|
|
|
-- lua new
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ControlSlider] ControlSlider
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlSlider#ControlSlider self (return value: cc.ControlSlider)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return nil
|