Commit 8aaddfc4374f4499d1ba13314b87967fcf1ec412
1 parent
b07c8884
Changed Animation API enums to uppercase.
Change-Id: I07578655e65a50135b43e42272d4b1e410177df0
Showing
4 changed files
with
15 additions
and
15 deletions
examples/bloom-view/bloom-view-example.cpp
| ... | ... | @@ -161,7 +161,7 @@ public: |
| 161 | 161 | // ROTATE |
| 162 | 162 | mRotationAnimation = Animation::New( 5.0f ); |
| 163 | 163 | mRotationAnimation.AnimateBy( Property( mObjectRootActor, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree( 360 )), Vector3::YAXIS ), AlphaFunction::EASE_IN_OUT ); |
| 164 | - mRotationAnimation.SetEndAction( Animation::Discard ); | |
| 164 | + mRotationAnimation.SetEndAction( Animation::DISCARD ); | |
| 165 | 165 | mRotationAnimation.SetLooping( true ); |
| 166 | 166 | mRotationAnimation.Play(); |
| 167 | 167 | |
| ... | ... | @@ -170,7 +170,7 @@ public: |
| 170 | 170 | mTranslationAnimation.AnimateBy( Property(mObjectRootActor, Actor::Property::POSITION), Vector3(100.0f, 0.0f, 0.0f), AlphaFunction::BOUNCE, TimePeriod(2.5f) ); |
| 171 | 171 | mTranslationAnimation.AnimateBy( Property(mObjectRootActor, Actor::Property::POSITION), Vector3(300.0f, 0.0f, 0.0f), AlphaFunction::BOUNCE, TimePeriod(2.5f, 2.5f) ); |
| 172 | 172 | mTranslationAnimation.AnimateBy( Property(mObjectRootActor, Actor::Property::POSITION), Vector3(0.0f, 0.0f, 0.0f), AlphaFunction::BOUNCE, TimePeriod(5.0f, 2.5f) ); |
| 173 | - mTranslationAnimation.SetEndAction( Animation::Discard ); | |
| 173 | + mTranslationAnimation.SetEndAction( Animation::DISCARD ); | |
| 174 | 174 | mTranslationAnimation.SetLooping( true ); |
| 175 | 175 | //mTranslationAnimation.Play(); |
| 176 | 176 | |
| ... | ... | @@ -178,7 +178,7 @@ public: |
| 178 | 178 | mBlurAnimation = Animation::New( 4.0f ); |
| 179 | 179 | mBlurAnimation.AnimateTo( Property( mBloomView, mBloomView.GetBlurStrengthPropertyIndex() ), 0.0f, AlphaFunction::LINEAR, TimePeriod(0.0f, 0.5f) ); |
| 180 | 180 | mBlurAnimation.AnimateTo( Property( mBloomView, mBloomView.GetBlurStrengthPropertyIndex() ), 1.0f, AlphaFunction::LINEAR, TimePeriod(2.0f, 0.5f) ); |
| 181 | - mBlurAnimation.SetEndAction( Animation::Discard ); | |
| 181 | + mBlurAnimation.SetEndAction( Animation::DISCARD ); | |
| 182 | 182 | mBlurAnimation.SetLooping( true ); |
| 183 | 183 | mBlurAnimation.Play(); |
| 184 | 184 | } |
| ... | ... | @@ -187,7 +187,7 @@ public: |
| 187 | 187 | { |
| 188 | 188 | mPulseBloomIntensityAnim = Animation::New( 2.5f ); |
| 189 | 189 | mPulseBloomIntensityAnim.AnimateTo( Property(mBloomView, mBloomView.GetBloomIntensityPropertyIndex()), 3.0f, AlphaFunction::BOUNCE, TimePeriod(2.5f) ); |
| 190 | - mPulseBloomIntensityAnim.SetEndAction( Animation::Discard ); | |
| 190 | + mPulseBloomIntensityAnim.SetEndAction( Animation::DISCARD ); | |
| 191 | 191 | mPulseBloomIntensityAnim.SetLooping( true ); |
| 192 | 192 | mPulseBloomIntensityAnim.Play(); |
| 193 | 193 | } | ... | ... |
examples/motion-blur/motion-blur-example.cpp
| ... | ... | @@ -295,7 +295,7 @@ public: |
| 295 | 295 | { |
| 296 | 296 | mActorTapMovementAnimation.AnimateTo( Property(mMotionBlurImageView, Actor::Property::POSITION), destPos, AlphaFunction::EASE_IN_OUT_SINE, TimePeriod(animDuration) ); |
| 297 | 297 | } |
| 298 | - mActorTapMovementAnimation.SetEndAction( Animation::Bake ); | |
| 298 | + mActorTapMovementAnimation.SetEndAction( Animation::BAKE ); | |
| 299 | 299 | mActorTapMovementAnimation.Play(); |
| 300 | 300 | |
| 301 | 301 | |
| ... | ... | @@ -310,7 +310,7 @@ public: |
| 310 | 310 | float animDuration = 1.0f; |
| 311 | 311 | mActorAnimation = Animation::New(animDuration); |
| 312 | 312 | mActorAnimation.AnimateBy( Property( mMotionBlurImageView, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree(360.0f) ), Vector3::YAXIS ), AlphaFunction::EASE_IN_OUT ); |
| 313 | - mActorAnimation.SetEndAction( Animation::Bake ); | |
| 313 | + mActorAnimation.SetEndAction( Animation::BAKE ); | |
| 314 | 314 | mActorAnimation.Play(); |
| 315 | 315 | } |
| 316 | 316 | break; |
| ... | ... | @@ -321,7 +321,7 @@ public: |
| 321 | 321 | float animDuration = 1.0f; |
| 322 | 322 | mActorAnimation = Animation::New(animDuration); |
| 323 | 323 | mActorAnimation.AnimateBy( Property( mMotionBlurImageView, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree(360.0f) ), Vector3::ZAXIS ), AlphaFunction::EASE_IN_OUT ); |
| 324 | - mActorAnimation.SetEndAction( Animation::Bake ); | |
| 324 | + mActorAnimation.SetEndAction( Animation::BAKE ); | |
| 325 | 325 | mActorAnimation.Play(); |
| 326 | 326 | } |
| 327 | 327 | break; |
| ... | ... | @@ -333,7 +333,7 @@ public: |
| 333 | 333 | mActorAnimation = Animation::New(animDuration); |
| 334 | 334 | mActorAnimation.AnimateBy( Property( mMotionBlurImageView, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree(360.0f) ), Vector3::YAXIS ), AlphaFunction::EASE_IN_OUT ); |
| 335 | 335 | mActorAnimation.AnimateBy( Property( mMotionBlurImageView, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree(360.0f) ), Vector3::ZAXIS ), AlphaFunction::EASE_IN_OUT ); |
| 336 | - mActorAnimation.SetEndAction( Animation::Bake ); | |
| 336 | + mActorAnimation.SetEndAction( Animation::BAKE ); | |
| 337 | 337 | mActorAnimation.Play(); |
| 338 | 338 | } |
| 339 | 339 | break; |
| ... | ... | @@ -344,7 +344,7 @@ public: |
| 344 | 344 | float animDuration = 1.0f; |
| 345 | 345 | mActorAnimation = Animation::New(animDuration); |
| 346 | 346 | mActorAnimation.AnimateBy( Property( mMotionBlurImageView, Actor::Property::SCALE ), Vector3(2.0f, 2.0f, 2.0f), AlphaFunction::BOUNCE, TimePeriod( 0.0f, 1.0f ) ); |
| 347 | - mActorAnimation.SetEndAction( Animation::Bake ); | |
| 347 | + mActorAnimation.SetEndAction( Animation::BAKE ); | |
| 348 | 348 | mActorAnimation.Play(); |
| 349 | 349 | } |
| 350 | 350 | break; | ... | ... |
examples/motion-stretch/motion-stretch-example.cpp
| ... | ... | @@ -267,7 +267,7 @@ public: |
| 267 | 267 | { |
| 268 | 268 | mActorTapMovementAnimation.AnimateTo( Property(mMotionStretchImageView, Actor::Property::POSITION), destPos, AlphaFunction::EASE_IN_OUT_SINE, TimePeriod(animDuration) ); |
| 269 | 269 | } |
| 270 | - mActorTapMovementAnimation.SetEndAction( Animation::Bake ); | |
| 270 | + mActorTapMovementAnimation.SetEndAction( Animation::BAKE ); | |
| 271 | 271 | mActorTapMovementAnimation.Play(); |
| 272 | 272 | |
| 273 | 273 | |
| ... | ... | @@ -282,7 +282,7 @@ public: |
| 282 | 282 | float animDuration = 1.0f; |
| 283 | 283 | mActorAnimation = Animation::New(animDuration); |
| 284 | 284 | mActorAnimation.AnimateBy( Property( mMotionStretchImageView, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree(360.0f) ), Vector3::YAXIS ), AlphaFunction::EASE_IN_OUT ); |
| 285 | - mActorAnimation.SetEndAction( Animation::Bake ); | |
| 285 | + mActorAnimation.SetEndAction( Animation::BAKE ); | |
| 286 | 286 | mActorAnimation.Play(); |
| 287 | 287 | } |
| 288 | 288 | break; |
| ... | ... | @@ -293,7 +293,7 @@ public: |
| 293 | 293 | float animDuration = 1.0f; |
| 294 | 294 | mActorAnimation = Animation::New(animDuration); |
| 295 | 295 | mActorAnimation.AnimateBy( Property( mMotionStretchImageView, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree(360.0f) ), Vector3::ZAXIS ), AlphaFunction::EASE_IN_OUT ); |
| 296 | - mActorAnimation.SetEndAction( Animation::Bake ); | |
| 296 | + mActorAnimation.SetEndAction( Animation::BAKE ); | |
| 297 | 297 | mActorAnimation.Play(); |
| 298 | 298 | } |
| 299 | 299 | break; |
| ... | ... | @@ -305,7 +305,7 @@ public: |
| 305 | 305 | mActorAnimation = Animation::New(animDuration); |
| 306 | 306 | mActorAnimation.AnimateBy( Property( mMotionStretchImageView, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree(360.0f) ), Vector3::YAXIS ), AlphaFunction::EASE_IN_OUT ); |
| 307 | 307 | mActorAnimation.AnimateBy( Property( mMotionStretchImageView, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree(360.0f) ), Vector3::ZAXIS ), AlphaFunction::EASE_IN_OUT ); |
| 308 | - mActorAnimation.SetEndAction( Animation::Bake ); | |
| 308 | + mActorAnimation.SetEndAction( Animation::BAKE ); | |
| 309 | 309 | mActorAnimation.Play(); |
| 310 | 310 | } |
| 311 | 311 | break; |
| ... | ... | @@ -316,7 +316,7 @@ public: |
| 316 | 316 | float animDuration = 1.0f; |
| 317 | 317 | mActorAnimation = Animation::New(animDuration); |
| 318 | 318 | mActorAnimation.AnimateBy( Property( mMotionStretchImageView, Actor::Property::SCALE ), Vector3(2.0f, 2.0f, 2.0f), AlphaFunction::BOUNCE, TimePeriod( 0.0f, 1.0f ) ); |
| 319 | - mActorAnimation.SetEndAction( Animation::Bake ); | |
| 319 | + mActorAnimation.SetEndAction( Animation::BAKE ); | |
| 320 | 320 | mActorAnimation.Play(); |
| 321 | 321 | } |
| 322 | 322 | break; | ... | ... |
shared/dali-table-view.cpp
| ... | ... | @@ -596,7 +596,7 @@ bool DaliTableView::DoTilePress( Actor actor, PointState::Type pointState ) |
| 596 | 596 | if( consumed ) |
| 597 | 597 | { |
| 598 | 598 | mPressedAnimation = Animation::New( BUTTON_PRESS_ANIMATION_TIME ); |
| 599 | - mPressedAnimation.SetEndAction( Animation::Discard ); | |
| 599 | + mPressedAnimation.SetEndAction( Animation::DISCARD ); | |
| 600 | 600 | |
| 601 | 601 | // scale the content actor within the Tile, as to not affect the placement within the Table. |
| 602 | 602 | Actor content = actor.GetChildAt(0); | ... | ... |