LHNodeAnimationProtocol Protocol Reference

LHNodeAnimationProtocol.h

Instance Methods

activeAnimation

- (LHAnimation *)activeAnimation
Discussion

Returns the active animation on a node or nil if no active animation.

Declared In
LHNodeAnimationProtocol.h

animations

- (NSMutableArray *)animations
Discussion

Returns all animations available on this node.

Declared In
LHNodeAnimationProtocol.h

animationWithName:

- (LHAnimation *)animationWithName:(NSString *)animName
Parameters
animName

The name of the animation that you want returned.

Discussion

Returns the animation with a given name or nil if no animation with the specified name is found on the node.

Declared In
LHNodeAnimationProtocol.h

setActiveAnimation:

- (void)setActiveAnimation:(LHAnimation *)animation
Parameters
animation

The animation that is about to get activated.

Discussion

Set the active animation on a node.

Declared In
LHNodeAnimationProtocol.h

setOpacity:

- (void)setOpacity:(float)opacity
Parameters
opacity

A opacity value between 0 and 1.

Discussion

Set opacity on the node controlled by the animation.

Declared In
LHNodeAnimationProtocol.h

setPosition:

- (void)setPosition:(CGPoint)point
Parameters
point

A point value.

Discussion

Set position on the node controlled by the animation.

Declared In
LHNodeAnimationProtocol.h

setRotation:

- (void)setRotation:(float)degrees
Parameters
degrees

A rotation value in degrees.

Discussion

Set rotation on the node controlled by the animation.

Declared In
LHNodeAnimationProtocol.h

setScaleX:

- (void)setScaleX:(float)xScale
Parameters
xScale

A scale value for the x axis.

Discussion

Set x scale on the node controlled by the animation.

Declared In
LHNodeAnimationProtocol.h

setScaleY:

- (void)setScaleY:(float)yScale
Parameters
yScale

A scale value for the y axis.

Discussion

Set y scale on the node controlled by the animation.

Declared In
LHNodeAnimationProtocol.h
Last updated: 2015-2-12

Back to top

Copyright © VLADU BOGDAN DANIEL PFA.