Set the numeric value of the stepper. If send is true, the CCControlEventValueChanged is sent.
Class CCControlStepper
#include <Geode/cocos/extensions/GUI/CCControlExtension/CCControlStepper.h>classCCControlStepper:publiccocos2d::extension::CCControl{ ... }
No description provided
Examples0
Public static methods1
staticcocos2d::extension::CCControlStepper*create(cocos2d::CCSprite*minusSprite,cocos2d::CCSprite*plusSprite)
No description provided
Public member functions24
boolinitWithMinusSpriteAndPlusSprite(cocos2d::CCSprite*minusSprite,cocos2d::CCSprite*plusSprite)
No description provided
virtualdoublegetValue()
No description provided
virtualboolisContinuous()
No description provided
virtualboolccTouchBegan(cocos2d::CCTouch*pTouch,cocos2d::CCEvent*pEvent)
No description provided
virtualvoidccTouchMoved(cocos2d::CCTouch*pTouch,cocos2d::CCEvent*pEvent)
No description provided
virtualvoidccTouchEnded(cocos2d::CCTouch*pTouch,cocos2d::CCEvent*pEvent)
No description provided
cocos2d::CCSprite*getMinusSprite()const
No description provided
voidsetMinusSprite()
No description provided
cocos2d::CCSprite*getPlusSprite()const
No description provided
voidsetPlusSprite()
No description provided
cocos2d::CCLabelTTF*getMinusLabel()const
No description provided
voidsetMinusLabel()
No description provided
cocos2d::CCLabelTTF*getPlusLabel()const
No description provided
voidsetPlusLabel()
No description provided
voidupdateLayoutUsingTouchLocation(cocos2d::CCPointlocation)
Update the layout of the stepper with the given touch location.
voidstartAutorepeat()
Start the autorepeat increment/decrement.
voidstopAutorepeat()
Stop the autorepeat.
Fields14
cocos2d::CCSprite*m_pMinusSprite;
No description provided
cocos2d::CCSprite*m_pPlusSprite;
No description provided
cocos2d::CCLabelTTF*m_pMinusLabel;
No description provided
cocos2d::CCLabelTTF*m_pPlusLabel;
No description provided
doublem_dValue;
The numeric value of the stepper.
boolm_bContinuous;
The continuous vs. noncontinuous state of the stepper.
boolm_bAutorepeat;
The automatic vs. nonautomatic repeat state of the stepper.
boolm_bWraps;
The wrap vs. no-wrap state of the stepper.
doublem_dMinimumValue;
The lowest possible numeric value for the stepper.
doublem_dMaximumValue;
The highest possible numeric value for the stepper.
doublem_dStepValue;
The step, or increment, value for the stepper.
boolm_bTouchInsideFlag;
No description provided
cocos2d::extension::CCControlStepperPartm_eTouchedPart;
No description provided
intm_nAutorepeatCount;
No description provided