exchange a view by another view with an animation More...


Public Types | |
| enum | AnimationStyle { kAlphaValueFade = 0, kPushInFromLeft, kPushInFromRight, kPushInFromTop, kPushInFromBottom } |
Public Member Functions | |
| ExchangeViewAnimation (CView *oldView, CView *newView, AnimationStyle style=kAlphaValueFade) | |
| ~ExchangeViewAnimation () | |
| void | animationStart (CView *view, IdStringPtr name) |
| animation starts | |
| void | animationTick (CView *view, IdStringPtr name, float pos) |
| pos is a normalized value between zero and one | |
| void | animationFinished (CView *view, IdStringPtr name, bool wasCanceled) |
| animation ended | |
Reference Counting Methods | |
| virtual void | forget () |
| decrease refcount and delete object if refcount == 0 | |
| virtual void | remember () |
| increase refcount | |
| virtual int32_t | getNbReference () const |
| get refcount | |
Message Methods | |
| virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
Protected Attributes | |
| CView * | newView |
| CView * | viewToRemove |
| AnimationStyle | style |
| float | newViewValueEnd |
| float | oldViewValueStart |
exchange a view by another view with an animation
see Animations Support
| enum AnimationStyle |
| ExchangeViewAnimation | ( | CView * | oldView, | |
| CView * | newView, | |||
| AnimationStyle | style = kAlphaValueFade | |||
| ) |
oldView must be a subview of the animation view
| void animationFinished | ( | CView * | view, | |
| IdStringPtr | name, | |||
| bool | wasCanceled | |||
| ) | [virtual] |
animation ended
Implements IAnimationTarget.
| void animationStart | ( | CView * | view, | |
| IdStringPtr | name | |||
| ) | [virtual] |
animation starts
Implements IAnimationTarget.
| void animationTick | ( | CView * | view, | |
| IdStringPtr | name, | |||
| float | pos | |||
| ) | [virtual] |
pos is a normalized value between zero and one
Implements IAnimationTarget.
| virtual void forget | ( | ) | [inline, virtual, inherited] |
decrease refcount and delete object if refcount == 0
| virtual int32_t getNbReference | ( | ) | const [inline, virtual, inherited] |
get refcount
| virtual CMessageResult notify | ( | CBaseObject * | sender, | |
| IdStringPtr | message | |||
| ) | [inline, virtual, inherited] |
| virtual void remember | ( | ) | [inline, virtual, inherited] |
increase refcount
float newViewValueEnd [protected] |
float oldViewValueStart [protected] |
AnimationStyle style [protected] |
CView* viewToRemove [protected] |
1.6.1