More SVACE fixes
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / TouchPoint.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.9
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10
11 namespace Dali {
12
13 public class TouchPoint : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal TouchPoint(global::System.IntPtr cPtr, bool cMemoryOwn) {
18     swigCMemOwn = cMemoryOwn;
19     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20   }
21
22   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TouchPoint obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~TouchPoint() {
27     Dispose();
28   }
29
30   public virtual void Dispose() {
31     lock(this) {
32       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33         if (swigCMemOwn) {
34           swigCMemOwn = false;
35           NDalicPINVOKE.delete_TouchPoint(swigCPtr);
36         }
37         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38       }
39       global::System.GC.SuppressFinalize(this);
40     }
41   }
42
43   public TouchPoint(int id, TouchPoint.State state, float screenX, float screenY) : this(NDalicPINVOKE.new_TouchPoint__SWIG_0(id, (int)state, screenX, screenY), true) {
44     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
45   }
46
47   public TouchPoint(int id, TouchPoint.State state, float screenX, float screenY, float localX, float localY) : this(NDalicPINVOKE.new_TouchPoint__SWIG_1(id, (int)state, screenX, screenY, localX, localY), true) {
48     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
49   }
50
51   public int deviceId {
52     set {
53       NDalicPINVOKE.TouchPoint_deviceId_set(swigCPtr, value);
54       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
55     } 
56     get {
57       int ret = NDalicPINVOKE.TouchPoint_deviceId_get(swigCPtr);
58       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59       return ret;
60     } 
61   }
62
63   public TouchPoint.State state {
64     set {
65       NDalicPINVOKE.TouchPoint_state_set(swigCPtr, (int)value);
66       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
67     } 
68     get {
69       TouchPoint.State ret = (TouchPoint.State)NDalicPINVOKE.TouchPoint_state_get(swigCPtr);
70       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
71       return ret;
72     } 
73   }
74
75   public Actor hitActor {
76     set {
77       NDalicPINVOKE.TouchPoint_hitActor_set(swigCPtr, Actor.getCPtr(value));
78       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79     } 
80     get {
81       global::System.IntPtr cPtr = NDalicPINVOKE.TouchPoint_hitActor_get(swigCPtr);
82       Actor ret = (cPtr == global::System.IntPtr.Zero) ? null : new Actor(cPtr, false);
83       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
84       return ret;
85     } 
86   }
87
88   public Vector2 local {
89     set {
90       NDalicPINVOKE.TouchPoint_local_set(swigCPtr, Vector2.getCPtr(value));
91       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92     } 
93     get {
94       global::System.IntPtr cPtr = NDalicPINVOKE.TouchPoint_local_get(swigCPtr);
95       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
96       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
97       return ret;
98     } 
99   }
100
101   public Vector2 screen {
102     set {
103       NDalicPINVOKE.TouchPoint_screen_set(swigCPtr, Vector2.getCPtr(value));
104       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105     } 
106     get {
107       global::System.IntPtr cPtr = NDalicPINVOKE.TouchPoint_screen_get(swigCPtr);
108       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
109       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110       return ret;
111     } 
112   }
113
114   public enum State {
115     Started,
116     Finished,
117     Down = Started,
118     Up = Finished,
119     Motion,
120     Leave,
121     Stationary,
122     Interrupted,
123     Last
124   }
125
126 }
127
128 }