[UnmanagedFunctionPointer(CallingConvention.StdCall)]
delegate float UserAlphaFunctionDelegate(float progress);
- public void Initialize(object source, AUIApplicationInitEventArgs e)
+ public void Initialize(object source, NUIApplicationInitEventArgs e)
{
Log("Initialize() is called!");
Stage stage = Stage.GetCurrent();
stage.BackgroundColor = Color.White;
- stage.TouchEvent += OnStageTouched;
- stage.TouchEvent += OnStageTouched2;
+ stage.Touch += OnStageTouched;
+ stage.Touch += OnStageTouched2;
//stage.EventProcessingFinished += OnEventProcessingFinished;
- stage.WheelEvent += OnStageWheelEvent;
+ stage.Wheel += OnStageWheelEvent;
// Add a _text label to the stage
_text = new TextLabel("Hello Mono World");
_animation = new Animation(10000); // 10000 milli-second of duration
_animation.StartTime = 5000;
_animation.EndTime = 10000;
- _animation.TargetPoperty = "Position";
+ _animation.TargetProperty = "Position";
_animation.AlphaFunction = new AlphaFunction(_user_alpha_func);
_animation.Destination = new Vector3(150.0f, 150.0f, 0.0f);
_animation.AnimateTo(_view2);
// Connect the signal callback for animaiton finished signal
_animation.Finished += AnimationFinished;
- _animation.EndAction = Dali.Constants.Animation.EndAction.Discard;
+ _animation.EndAction = Animation.EndActions.Discard;
// Play the _animation
_animation.Play();
}
public void OnStageTouched(object source, Stage.TouchEventArgs e)
{
// Only animate the _text label when touch down happens
- if( e.TouchData.GetState(0) == PointStateType.DOWN )
+ if( e.Touch.GetState(0) == PointStateType.DOWN )
{
Log("OnStageTouched() is called! PointStateType.DOWN came!");
myCount++;
// Callback for stage touched signal handling
public void OnStageTouched2(object source, Stage.TouchEventArgs e)
{
- Log("OnStageTouched2() is called!state="+ e.TouchData.GetState(0) );
+ Log("OnStageTouched2() is called!state="+ e.Touch.GetState(0) );
}
public void OnEventProcessingFinished(object source)