Creates slider with a background filename, a progress filename and a thumb image filename.
Class CCControlSlider
#include <Geode/cocos/extensions/GUI/CCControlExtension/CCControlSlider.h>classCCControlSlider:publiccocos2d::extension::CCControl{ ... }
No description provided
Examples0
Public static methods2
staticcocos2d::extension::CCControlSlider*create(charconst*bgFile,charconst*progressFile,charconst*thumbFile)
staticcocos2d::extension::CCControlSlider*create(cocos2d::CCSprite*backgroundSprite,cocos2d::CCSprite*pogressSprite,cocos2d::CCSprite*thumbSprite)
Creates a slider with a given background sprite and a progress bar and a thumb item.
Public member functions21
floatgetValue()const
Contains the receiver’s current value.
floatgetMinimumValue()const
Contains the minimum value of the receiver. The default value of this property is 0.0.
floatgetMaximumValue()const
Contains the maximum value of the receiver. The default value of this property is 1.0.
virtualboolisTouchInside(cocos2d::CCTouch*touch)
No description provided
cocos2d::CCPointlocationFromTouch(cocos2d::CCTouch*touch)
No description provided
floatgetMinimumAllowedValue()const
No description provided
floatgetMaximumAllowedValue()const
No description provided
cocos2d::CCSprite*getThumbSprite()const
No description provided
voidsetThumbSprite()
No description provided
cocos2d::CCSprite*getProgressSprite()const
No description provided
voidsetProgressSprite()
No description provided
cocos2d::CCSprite*getBackgroundSprite()const
No description provided
voidsetBackgroundSprite()
No description provided
virtualboolinitWithSprites(cocos2d::CCSprite*backgroundSprite,cocos2d::CCSprite*progressSprite,cocos2d::CCSprite*thumbSprite)
Initializes a slider with a background sprite, a progress bar and a thumb item.
backgroundSprite
CCSprite, that is used as a background.
progressSprite
CCSprite, that is used as a progress bar.
thumbItem
CCSprite, that is used as a thumb.
virtualvoidneedsLayout()
No description provided
Fields8
floatm_value;
Contains the receiver’s current value.
floatm_minimumValue;
Contains the minimum value of the receiver. The default value of this property is 0.0.
floatm_maximumValue;
Contains the maximum value of the receiver. The default value of this property is 1.0.
floatm_minimumAllowedValue;
No description provided
floatm_maximumAllowedValue;
No description provided
cocos2d::CCSprite*m_thumbSprite;
No description provided
cocos2d::CCSprite*m_progressSprite;
No description provided
cocos2d::CCSprite*m_backgroundSprite;
No description provided
Protected member functions7
voidsliderBegan(cocos2d::CCPointlocation)
No description provided
voidsliderMoved(cocos2d::CCPointlocation)
No description provided
voidsliderEnded(cocos2d::CCPointlocation)
No description provided
virtualboolccTouchBegan(cocos2d::CCTouch*touch,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
floatvalueForLocation(cocos2d::CCPointlocation)
Returns the value for the given location.