CCScrollView
CCScrollView
Cocos2DInheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCLayer
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCAccelerometerDelegate
Constructors
CCScrollView()
CCScrollView()()CCScrollView(CCSize)
CCScrollView(CCSize)(Cocos2D.CCSize size)Parameters:
size (Cocos2D.CCSize)CCScrollView(CCSize, CCNode)
CCScrollView(CCSize, CCNode)(Cocos2D.CCSize size, Cocos2D.CCNode container)Parameters:
size (Cocos2D.CCSize)container (Cocos2D.CCNode)Example
Fields
_bounceable(System.Boolean)
_clippingToBounds(System.Boolean)
_container(Cocos2D.CCNode)
_contentOffset(Cocos2D.CCPoint)
_delegate(Cocos2D.ICCScrollViewDelegate)
_direction(Cocos2D.CCScrollViewDirection)
_dragging(System.Boolean)
_maxInset(Cocos2D.CCPoint)
_maxScale(System.Single)
_minInset(Cocos2D.CCPoint)
_minScale(System.Single)
_scrollDistance(Cocos2D.CCPoint)
_touchLength(System.Single)
_touchMoved(System.Boolean)
_touchPoint(Cocos2D.CCPoint)
_touches(System.Collections.Generic.ListCocos2D.CCTouch)
_viewSize(Cocos2D.CCSize)
Properties
Bounceable(System.Boolean)
ClippingToBounds(System.Boolean)
Container(Cocos2D.CCNode)
ContentSize(Cocos2D.CCSize)
Delegate(Cocos2D.ICCScrollViewDelegate)
Direction(Cocos2D.CCScrollViewDirection)
IsDragging(System.Boolean)
IsTouchMoved(System.Boolean)
MaxContainerOffset(Cocos2D.CCPoint)
MaxScale(System.Single)
MinContainerOffset(Cocos2D.CCPoint)
MinScale(System.Single)
TouchEnabled(System.Boolean)
ViewSize(Cocos2D.CCSize)
ZoomScale(System.Single)
Methods
AddChild(CCNode, int, int)
AddChild(CCNode, int, int)(Cocos2D.CCNode child, System.Int32 zOrder, System.Int32 tag)Parameters:
child (Cocos2D.CCNode)zOrder (System.Int32)tag (System.Int32)Example
GetContentOffset()
Cocos2D.CCPoint GetContentOffset()()Returns:
Cocos2D.CCPointInit()
System.Boolean Init()()Returns:
System.BooleanExample
InitWithViewSize(CCSize, CCNode)
System.Boolean InitWithViewSize(CCSize, CCNode)(Cocos2D.CCSize size, Cocos2D.CCNode container)Parameters:
size (Cocos2D.CCSize)container (Cocos2D.CCNode)Returns:
System.BooleanExample
IsNodeVisible(CCNode)
System.Boolean IsNodeVisible(CCNode)(Cocos2D.CCNode node)Parameters:
node (Cocos2D.CCNode)Returns:
System.BooleanExample
Pause(object)
Pause(object)(System.Object sender)Parameters:
sender (System.Object)Example
RegisterWithTouchDispatcher()
RegisterWithTouchDispatcher()()Example
Resume(object)
Resume(object)(System.Object sender)Parameters:
sender (System.Object)Example
SetContentOffset(CCPoint)
SetContentOffset(CCPoint)(Cocos2D.CCPoint offset)Parameters:
offset (Cocos2D.CCPoint)Example
SetContentOffset(CCPoint, bool)
SetContentOffset(CCPoint, bool)(Cocos2D.CCPoint offset, System.Boolean animated)Parameters:
offset (Cocos2D.CCPoint)animated (System.Boolean)SetContentOffsetInDuration(CCPoint, float)
SetContentOffsetInDuration(CCPoint, float)(Cocos2D.CCPoint offset, System.Single dt)Parameters:
offset (Cocos2D.CCPoint)dt (System.Single)Example
SetZoomScale(float, bool)
SetZoomScale(float, bool)(System.Single value, System.Boolean animated)Parameters:
value (System.Single)animated (System.Boolean)Example
SetZoomScaleInDuration(float, float)
SetZoomScaleInDuration(float, float)(System.Single s, System.Single dt)Parameters:
s (System.Single)dt (System.Single)Example
TouchBegan(CCTouch)
System.Boolean TouchBegan(CCTouch)(Cocos2D.CCTouch pTouch)Parameters:
pTouch (Cocos2D.CCTouch)Returns:
System.BooleanExample
TouchCancelled(CCTouch)
TouchCancelled(CCTouch)(Cocos2D.CCTouch touch)Parameters:
touch (Cocos2D.CCTouch)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
UpdateInset()
UpdateInset()()