1 %rename(Hover) Dali::HoverEvent;
3 %csmethodmodifiers Dali::HoverEvent::points "private";
4 %csmethodmodifiers Dali::HoverEvent::time "private";
6 %typemap(cscode) Dali::HoverEvent %{
7 public static Hover GetHoverFromPtr(global::System.IntPtr cPtr) {
8 Hover ret = new Hover(cPtr, false);
9 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
21 public int GetDeviceId(uint point) {
22 if( point < points.Count )
24 return points[(int)point].deviceId;
29 public PointStateType GetState(uint point) {
30 if( point < points.Count )
32 return (Dali.PointStateType)(points[(int)point].state);
34 return PointStateType.FINISHED;
37 public Actor GetHitActor(uint point) {
38 if( point < points.Count )
40 return points[(int)point].hitActor;
44 // Return a native empty handle
45 Actor actor = new Actor();
51 public Vector2 GetLocalPosition(uint point) {
52 if( point < points.Count )
54 return points[(int)point].local;
56 return new Vector2(0.0f, 0.0f);
59 public Vector2 GetScreenPosition(uint point) {
60 if( point < points.Count )
62 return points[(int)point].screen;
64 return new Vector2(0.0f, 0.0f);