CCControlPotentiometer
CCControlPotentiometer
Cocos2DInheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCLayer → Cocos2D.CCLayerRGBA → Cocos2D.CCControl
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCAccelerometerDelegate, Cocos2D.ICCRGBAProtocol
Constructors
CCControlPotentiometer()
CCControlPotentiometer()()
CCControlPotentiometer(string, string, string)
CCControlPotentiometer(string, string, string)(System.String backgroundFile, System.String progressFile, System.String thumbFile)
Parameters:
backgroundFile
(System.String)progressFile
(System.String)thumbFile
(System.String)Example
Fields
Properties
Tells whether the control is enabled.
Methods
AngleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint(CCPoint, CCPoint, CCPoint, CCPoint)
System.Single AngleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint(CCPoint, CCPoint, CCPoint, CCPoint)(Cocos2D.CCPoint beginLineA, Cocos2D.CCPoint endLineA, Cocos2D.CCPoint beginLineB, Cocos2D.CCPoint endLineB)
Parameters:
beginLineA
(Cocos2D.CCPoint)endLineA
(Cocos2D.CCPoint)beginLineB
(Cocos2D.CCPoint)endLineB
(Cocos2D.CCPoint)Returns:
System.Single
DistanceBetweenPointAndPoint(CCPoint, CCPoint)
System.Single DistanceBetweenPointAndPoint(CCPoint, CCPoint)(Cocos2D.CCPoint point1, Cocos2D.CCPoint point2)
Parameters:
point1
(Cocos2D.CCPoint)point2
(Cocos2D.CCPoint)Returns:
System.Single
InitWithTrackSprite_ProgressTimer_ThumbSprite(CCSprite, CCProgressTimer, CCSprite)
System.Boolean InitWithTrackSprite_ProgressTimer_ThumbSprite(CCSprite, CCProgressTimer, CCSprite)(Cocos2D.CCSprite trackSprite, Cocos2D.CCProgressTimer progressTimer, Cocos2D.CCSprite thumbSprite)
Parameters:
trackSprite
(Cocos2D.CCSprite)progressTimer
(Cocos2D.CCProgressTimer)thumbSprite
(Cocos2D.CCSprite)Returns:
System.Boolean
IsTouchInside(CCTouch)
System.Boolean IsTouchInside(CCTouch)(Cocos2D.CCTouch touch)
Returns a boolean value that indicates whether a touch is inside the bounds of the receiver. The given touch must be relative to the world. @param touch A CCTouch object that represents a touch. @return YES whether a touch is inside the receiver�s rect.
Parameters:
touch
(Cocos2D.CCTouch)Returns:
System.Boolean
Example
PotentiometerBegan(CCPoint)
PotentiometerBegan(CCPoint)(Cocos2D.CCPoint location)
Parameters:
location
(Cocos2D.CCPoint)PotentiometerEnded(CCPoint)
PotentiometerEnded(CCPoint)(Cocos2D.CCPoint location)
Parameters:
location
(Cocos2D.CCPoint)PotentiometerMoved(CCPoint)
PotentiometerMoved(CCPoint)(Cocos2D.CCPoint location)
Parameters:
location
(Cocos2D.CCPoint)TouchBegan(CCTouch)
System.Boolean TouchBegan(CCTouch)(Cocos2D.CCTouch touch)
Returns true signaling that this node will consume the touch.
Parameters:
touch
(Cocos2D.CCTouch)Returns:
System.Boolean
Example
TouchEnded(CCTouch)
TouchEnded(CCTouch)(Cocos2D.CCTouch touch)
Parameters:
touch
(Cocos2D.CCTouch)Example
TouchMoved(CCTouch)
TouchMoved(CCTouch)(Cocos2D.CCTouch touch)
Parameters:
touch
(Cocos2D.CCTouch)Example