Creates potentiometer with a track filename and a progress filename.
Class CCControlPotentiometer
#include <Geode/cocos/extensions/GUI/CCControlExtension/CCControlPotentiometer.h>classCCControlPotentiometer:publiccocos2d::extension::CCControl{ ... }
No description provided
Examples0
Public static methods1
staticcocos2d::extension::CCControlPotentiometer*create(charconst*backgroundFile,charconst*progressFile,charconst*thumbFile)
Public member functions18
boolinitWithTrackSprite_ProgressTimer_ThumbSprite(cocos2d::CCSprite*trackSprite,cocos2d::CCProgressTimer*progressTimer,cocos2d::CCSprite*thumbSprite)
Initializes a potentiometer with a track sprite and a progress bar.
trackSprite
CCSprite, that is used as a background.
progressSprite
CCProgressTimer, that is used as a progress bar.
floatgetValue()
No description provided
floatgetMinimumValue()
No description provided
floatgetMaximumValue()
No description provided
virtualboolisTouchInside(cocos2d::CCTouch*touch)
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*getThumbSprite()const
No description provided
voidsetThumbSprite()
No description provided
cocos2d::CCProgressTimer*getProgressTimer()const
No description provided
voidsetProgressTimer()
No description provided
cocos2d::CCPointgetPreviousLocation()const
No description provided
voidsetPreviousLocation()
No description provided
Fields6
cocos2d::CCSprite*m_pThumbSprite;
No description provided
cocos2d::CCProgressTimer*m_pProgressTimer;
No description provided
cocos2d::CCPointm_tPreviousLocation;
No description provided
floatm_fValue;
Contains the receiver’s current value.
floatm_fMinimumValue;
Contains the minimum value of the receiver. The default value of this property is 0.0.
floatm_fMaximumValue;
Contains the maximum value of the receiver. The default value of this property is 1.0.
Protected member functions5
voidpotentiometerBegan(cocos2d::CCPointlocation)
Factorize the event dispath into these methods.
voidpotentiometerMoved(cocos2d::CCPointlocation)
No description provided
voidpotentiometerEnded(cocos2d::CCPointlocation)
No description provided
floatdistanceBetweenPointAndPoint(cocos2d::CCPointpoint1,cocos2d::CCPointpoint2)
Returns the distance between the point1 and point2.
floatangleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint(cocos2d::CCPointbeginLineA,cocos2d::CCPointendLineA,cocos2d::CCPointbeginLineB,cocos2d::CCPointendLineB)
Returns the angle in degree between line1 and line2.