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*progressFile
,
charconst*thumbFile
)

Creates slider with a background filename, a progress filename and a thumb image filename.

staticcocos2d::extension::CCControlSlider*create(
cocos2d::CCSprite*backgroundSprite
,
cocos2d::CCSprite*pogressSprite
,)

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.

virtualvoidsetValue()
No description provided
floatgetMinimumValue()const

Contains the minimum value of the receiver. The default value of this property is 0.0.

virtualvoidsetMinimumValue()
No description provided
floatgetMaximumValue()const

Contains the maximum value of the receiver. The default value of this property is 1.0.

virtualvoidsetMaximumValue()
No description provided
virtualvoidsetEnabled(
boolenabled
)
No description provided
virtualboolisTouchInside()
No description provided
cocos2d::CCPointlocationFromTouch()
No description provided
floatgetMinimumAllowedValue()const
No description provided
voidsetMinimumAllowedValue()
No description provided
floatgetMaximumAllowedValue()const
No description provided
voidsetMaximumAllowedValue()
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
,)

Initializes a slider with a background sprite, a progress bar and a thumb item.

Parameters

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()
No description provided
voidsliderMoved()
No description provided
voidsliderEnded()
No description provided
virtualboolccTouchBegan(,)
No description provided
virtualvoidccTouchMoved(,)
No description provided
virtualvoidccTouchEnded(,)
No description provided
floatvalueForLocation()

Returns the value for the given location.

Protected fields0
Derived classes0