NTAnimationStyleBuilder


@interface NTAnimationStyleBuilder : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A builder for AnimationStyle instances.

  • Constructs an AnimationStyleBuilder object with all parameters set to defaults.

    Declaration

    Objective-C

    - (id)init;
  • Returns the relative speed of the animation.

    Declaration

    Objective-C

    - (float)getRelativeSpeed;

    Return Value

    The relative speed of the animation (1.0 corresponds to the default speed).

  • Sets the relative speed of the animation. The relative speed affects all phases of the animation.

    Declaration

    Objective-C

    - (void)setRelativeSpeed:(float)relativeSpeed;

    Parameters

    relativeSpeed

    The new relative speed of the animation.

  • Returns the phase-in duration of the animation.

    Declaration

    Objective-C

    - (float)getPhaseInDuration;

    Return Value

    The phase-in duration of the animation in seconds. By default this is 0.5.

  • Sets the phase-in duration of the animation.

    Declaration

    Objective-C

    - (void)setPhaseInDuration:(float)duration;

    Parameters

    duration

    The new phase-in duration of the animation in seconds.

  • Returns the phase-out duration of the animation.

    Declaration

    Objective-C

    - (float)getPhaseOutDuration;

    Return Value

    The phase-out duration of the animation in seconds. By default this is 0.0, which means instant effect.

  • Sets the phase-out duration of the animation.

    Declaration

    Objective-C

    - (void)setPhaseOutDuration:(float)duration;

    Parameters

    duration

    The new phase-out duration of the animation in seconds.

  • Returns the fade animation type.

    Declaration

    Objective-C

    - (enum NTAnimationType)getFadeAnimationType;

    Return Value

    The type of the fade animation.

  • Sets the fade animation type.

    Declaration

    Objective-C

    - (void)setFadeAnimationType:(enum NTAnimationType)animType;

    Parameters

    animType

    The new type of the fade animation.

  • Returns the size-related animation type.

    Declaration

    Objective-C

    - (enum NTAnimationType)getSizeAnimationType;

    Return Value

    The type of the size-related animation.

  • Sets the size-related animation type.

    Declaration

    Objective-C

    - (void)setSizeAnimationType:(enum NTAnimationType)animType;

    Parameters

    animType

    The new type of the size-related animation.

  • Builds a new instance of the AnimationStyle object using previously set parameters.

    Declaration

    Objective-C

    - (NTAnimationStyle *)buildStyle;

    Return Value

    A new AnimationStyle object.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;