Public Member Functions | Properties

<ControlledCCNodeProtocol> Protocol Reference

This protocol adds to a CCNode the ability to be managed by a CCNodeController so that the CCNode can react dynamically to changes in the device orientation (portrait, landscape, etc), as well as to allow the CCNode to act as an overlay for the device camera, permitting "augmented reality" displays. More...

#import <CCNodeController.h>

Inheritance diagram for <ControlledCCNodeProtocol>:
Inheritance graph
[legend]

List of all members.

Public Member Functions

(void) - deviceOrientationDidChange:

Properties

CCNodeControllercontroller

Detailed Description

This protocol adds to a CCNode the ability to be managed by a CCNodeController so that the CCNode can react dynamically to changes in the device orientation (portrait, landscape, etc), as well as to allow the CCNode to act as an overlay for the device camera, permitting "augmented reality" displays.


Member Function Documentation

- (void) deviceOrientationDidChange: (ccDeviceOrientation)  newOrientation

Called automatically by the controller when the orientation of the device (portrait, landscape, etc) has changed.

The CCNode may take action such as transposing its contentSize, or reorganizing its child nodes, to better fit the new screen shape.


Property Documentation

- (CCNodeController*) controller [read, write, assign]

The controller that is controlling this node.

This property is available to support delegation from this node. This property is set automatically when this node is attached to the controller, and should not be set by the application directly.

Reimplemented in ControllableCCLayer.


The documentation for this protocol was generated from the following file: