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
)

Creates potentiometer with a track filename and a progress filename.

Public member functions18
boolinitWithTrackSprite_ProgressTimer_ThumbSprite(,,)

Initializes a potentiometer with a track sprite and a progress bar.

Parameters

trackSprite

CCSprite, that is used as a background.

progressSprite

CCProgressTimer, that is used as a progress bar.
voidsetValue(
floatvalue
)
No description provided
floatgetValue()
No description provided
voidsetMinimumValue(
floatminimumValue
)
No description provided
floatgetMinimumValue()
No description provided
voidsetMaximumValue(
floatmaximumValue
)
No description provided
floatgetMaximumValue()
No description provided
virtualvoidsetEnabled(
boolenabled
)
No description provided
virtualboolisTouchInside()
No description provided
virtualboolccTouchBegan(,)
No description provided
virtualvoidccTouchMoved(,)
No description provided
virtualvoidccTouchEnded(,)
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
;
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()

Factorize the event dispath into these methods.

voidpotentiometerMoved()
No description provided
voidpotentiometerEnded()
No description provided
floatdistanceBetweenPointAndPoint(,)

Returns the distance between the point1 and point2.

floatangleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint(,,,)

Returns the angle in degree between line1 and line2.

Protected fields0
Derived classes0