2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ControlStepper
|
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=#ControlStepper] getMinusSprite
|
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=#ControlStepper] setValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #double value
|
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
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=#ControlStepper] setStepValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #double stepValue
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
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=#ControlStepper] initWithMinusSpriteAndPlusSprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #cc.Sprite minusSprite
|
|
|
|
-- @param #cc.Sprite plusSprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Set the numeric value of the stepper. If send is true, the Control::EventType::VALUE_CHANGED is sent.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ControlStepper] setValueWithSendingEvent
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #double value
|
|
|
|
-- @param #bool send
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
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=#ControlStepper] setMaximumValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #double maximumValue
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
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=#ControlStepper] getMinusLabel
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @return Label#Label ret (return value: cc.Label)
|
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=#ControlStepper] getPlusLabel
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @return Label#Label ret (return value: cc.Label)
|
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=#ControlStepper] setWraps
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #bool wraps
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
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=#ControlStepper] setMinusLabel
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Label var
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-17 14:28:14 +08:00
|
|
|
-- Start the autorepeat increment/decrement.
|
|
|
|
-- @function [parent=#ControlStepper] startAutorepeat
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-17 14:28:14 +08:00
|
|
|
-- Update the layout of the stepper with the given touch location.
|
|
|
|
-- @function [parent=#ControlStepper] updateLayoutUsingTouchLocation
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #vec2_table location
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
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=#ControlStepper] isContinuous
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-17 14:28:14 +08:00
|
|
|
-- Stop the autorepeat.
|
|
|
|
-- @function [parent=#ControlStepper] stopAutorepeat
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-17 14:28:14 +08:00
|
|
|
--
|
|
|
|
-- @function [parent=#ControlStepper] setMinimumValue
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #double minimumValue
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
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=#ControlStepper] setPlusLabel
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #cc.Label var
|
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
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=#ControlStepper] getValue
|
|
|
|
-- @param self
|
|
|
|
-- @return double#double ret (return value: double)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#ControlStepper] getPlusSprite
|
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)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ControlStepper] setPlusSprite
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Sprite var
|
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ControlStepper] setMinusSprite
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Sprite var
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
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=#ControlStepper] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Sprite minusSprite
|
|
|
|
-- @param #cc.Sprite plusSprite
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return ControlStepper#ControlStepper ret (return value: cc.ControlStepper)
|
|
|
|
|
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=#ControlStepper] onTouchMoved
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Touch pTouch
|
|
|
|
-- @param #cc.Event pEvent
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
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=#ControlStepper] onTouchEnded
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Touch pTouch
|
|
|
|
-- @param #cc.Event pEvent
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-03-17 14:28:14 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ControlStepper] update
|
|
|
|
-- @param self
|
|
|
|
-- @param #float dt
|
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
|
|
|
|
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=#ControlStepper] onTouchBegan
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Touch pTouch
|
|
|
|
-- @param #cc.Event pEvent
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- js ctor
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ControlStepper] ControlStepper
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ControlStepper#ControlStepper self (return value: cc.ControlStepper)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return nil
|