Remove Actor class and move Actor APIs into View
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / GestureDetector.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
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 GestureDetector : BaseHandle {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15
16   internal GestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.GestureDetector_SWIGUpcast(cPtr), cMemoryOwn) {
17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18   }
19
20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GestureDetector obj) {
21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22   }
23
24   ~GestureDetector() {
25     DisposeQueue.Instance.Add(this);
26   }
27
28   public override void Dispose() {
29     if (!Stage.IsInstalled()) {
30       DisposeQueue.Instance.Add(this);
31       return;
32     }
33
34     lock(this) {
35       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36         if (swigCMemOwn) {
37           swigCMemOwn = false;
38           NDalicPINVOKE.delete_GestureDetector(swigCPtr);
39         }
40         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
41       }
42       global::System.GC.SuppressFinalize(this);
43       base.Dispose();
44     }
45   }
46
47
48   public GestureDetector() : this(NDalicPINVOKE.new_GestureDetector__SWIG_0(), true) {
49     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
50   }
51
52   public new static GestureDetector DownCast(BaseHandle handle) {
53     GestureDetector ret = new GestureDetector(NDalicPINVOKE.GestureDetector_DownCast(BaseHandle.getCPtr(handle)), true);
54     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
55     return ret;
56   }
57
58   public GestureDetector(GestureDetector handle) : this(NDalicPINVOKE.new_GestureDetector__SWIG_1(GestureDetector.getCPtr(handle)), true) {
59     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
60   }
61
62   public GestureDetector Assign(GestureDetector rhs) {
63     GestureDetector ret = new GestureDetector(NDalicPINVOKE.GestureDetector_Assign(swigCPtr, GestureDetector.getCPtr(rhs)), false);
64     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
65     return ret;
66   }
67
68   public void Attach(View view) {
69     NDalicPINVOKE.GestureDetector_Attach(swigCPtr, View.getCPtr(view));
70     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
71   }
72
73   public void Detach(View view) {
74     NDalicPINVOKE.GestureDetector_Detach(swigCPtr, View.getCPtr(view));
75     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
76   }
77
78   public void DetachAll() {
79     NDalicPINVOKE.GestureDetector_DetachAll(swigCPtr);
80     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
81   }
82
83   public uint GetAttachedViewCount() {
84     uint ret = NDalicPINVOKE.GestureDetector_GetAttachedActorCount(swigCPtr);
85     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
86     return ret;
87   }
88
89   public View GetAttachedView(uint index) {
90     View ret = new View(NDalicPINVOKE.GestureDetector_GetAttachedActor(swigCPtr, index), true);
91     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92     return ret;
93   }
94
95 }
96
97 }