Skip to main content

CCControl

CCControl

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCLayer → Cocos2D.CCLayerRGBA

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

CCControl()

CCControl()()

Default constructor. Does nothing

Example

Fields

_dispatchTable(System.Collections.Generic.DictionaryCocos2D.CCControlEvent,Cocos2D.CCRawListCocos2D.CCInvocation)
_enabled(System.Boolean)
_hasVisibleParents(System.Boolean)
_highlighted(System.Boolean)
_selected(System.Boolean)
_state(Cocos2D.CCControlState)

Properties

Enabled(System.Boolean)
Highlighted(System.Boolean)
IsOpacityModifyRGB(System.Boolean)

sets the premultipliedAlphaOpacity property. If set to NO then opacity will be applied as: glColor(R,G,B,opacity); If set to YES then oapcity will be applied as: glColor(opacity, opacity, opacity, opacity ); Textures with premultiplied alpha will have this property by default on YES. Otherwise the default value is NO @since v0.8

Selected(System.Boolean)
State(Cocos2D.CCControlState)

Methods

AddTargetWithActionForControlEvent(object, Action, CCControlEvent)

AddTargetWithActionForControlEvent(object, Action, CCControlEvent)(System.Object target, System.ActionSystem.Object,Cocos2D.CCControlEvent action, Cocos2D.CCControlEvent controlEvent)
Parameters:
target (System.Object)
action (System.ActionSystem.Object,Cocos2D.CCControlEvent)
controlEvent (Cocos2D.CCControlEvent)

AddTargetWithActionForControlEvents(object, Action, CCControlEvent)

AddTargetWithActionForControlEvents(object, Action, CCControlEvent)(System.Object target, System.ActionSystem.Object,Cocos2D.CCControlEvent action, Cocos2D.CCControlEvent controlEvents)
Parameters:
target (System.Object)
action (System.ActionSystem.Object,Cocos2D.CCControlEvent)
controlEvents (Cocos2D.CCControlEvent)
Example

DispatchListforControlEvent(CCControlEvent)

Cocos2D.CCRawListCocos2D.CCInvocation DispatchListforControlEvent(CCControlEvent)(Cocos2D.CCControlEvent controlEvent)
Parameters:
controlEvent (Cocos2D.CCControlEvent)
Returns:
Cocos2D.CCRawListCocos2D.CCInvocation
Example

GetTouchLocation(CCTouch)

Cocos2D.CCPoint GetTouchLocation(CCTouch)(Cocos2D.CCTouch touch)
Parameters:
touch (Cocos2D.CCTouch)
Returns:
Cocos2D.CCPoint
Example

HasVisibleParents()

System.Boolean HasVisibleParents()()
Returns:
System.Boolean

Init()

System.Boolean Init()()
Returns:
System.Boolean
Example

IsTouchInside(CCTouch)

System.Boolean IsTouchInside(CCTouch)(Cocos2D.CCTouch touch)
Parameters:
touch (Cocos2D.CCTouch)
Returns:
System.Boolean
Example

NeedsLayout()

NeedsLayout()()

RemoveTargetWithActionForControlEvent(object, Action, CCControlEvent)

RemoveTargetWithActionForControlEvent(object, Action, CCControlEvent)(System.Object target, System.ActionSystem.Object,Cocos2D.CCControlEvent action, Cocos2D.CCControlEvent controlEvent)
Parameters:
target (System.Object)
action (System.ActionSystem.Object,Cocos2D.CCControlEvent)
controlEvent (Cocos2D.CCControlEvent)

RemoveTargetWithActionForControlEvents(object, Action, CCControlEvent)

RemoveTargetWithActionForControlEvents(object, Action, CCControlEvent)(System.Object target, System.ActionSystem.Object,Cocos2D.CCControlEvent action, Cocos2D.CCControlEvent controlEvents)
Parameters:
target (System.Object)
action (System.ActionSystem.Object,Cocos2D.CCControlEvent)
controlEvents (Cocos2D.CCControlEvent)
Example

SendActionsForControlEvents(CCControlEvent)

SendActionsForControlEvents(CCControlEvent)(Cocos2D.CCControlEvent controlEvents)
Parameters:
controlEvents (Cocos2D.CCControlEvent)
Example