3b7008eb3f2296153c9369e2123a6f818a6ccb6e
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / PinchGesture.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 PinchGesture : Gesture {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15
16   internal PinchGesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PinchGesture_SWIGUpcast(cPtr), cMemoryOwn) {
17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18   }
19
20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PinchGesture obj) {
21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22   }
23
24   ~PinchGesture() {
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_PinchGesture(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 static PinchGesture GetPinchGestureFromPtr(global::System.IntPtr cPtr) {
49     PinchGesture ret = new PinchGesture(cPtr, false);
50     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51     return ret;
52   }
53
54   public float Scale
55   {
56     get
57     {
58       return scale;
59     }
60   }
61
62   public float Speed
63   {
64     get
65     {
66       return speed;
67     }
68   }
69
70   public Vector2 ScreenCenterPoint
71   {
72     get
73     {
74       return screenCenterPoint;
75     }
76   }
77
78   public Vector2 LocalCenterPoint
79   {
80     get
81     {
82       return localCenterPoint;
83     }
84   }
85
86   public PinchGesture(Gesture.StateType state) : this(NDalicPINVOKE.new_PinchGesture__SWIG_0((int)state), true) {
87     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
88   }
89
90   public PinchGesture(PinchGesture rhs) : this(NDalicPINVOKE.new_PinchGesture__SWIG_1(PinchGesture.getCPtr(rhs)), true) {
91     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92   }
93
94   public PinchGesture Assign(PinchGesture rhs) {
95     PinchGesture ret = new PinchGesture(NDalicPINVOKE.PinchGesture_Assign(swigCPtr, PinchGesture.getCPtr(rhs)), false);
96     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
97     return ret;
98   }
99
100   private float scale {
101     set {
102       NDalicPINVOKE.PinchGesture_scale_set(swigCPtr, value);
103       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104     } 
105     get {
106       float ret = NDalicPINVOKE.PinchGesture_scale_get(swigCPtr);
107       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
108       return ret;
109     } 
110   }
111
112   private float speed {
113     set {
114       NDalicPINVOKE.PinchGesture_speed_set(swigCPtr, value);
115       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116     } 
117     get {
118       float ret = NDalicPINVOKE.PinchGesture_speed_get(swigCPtr);
119       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120       return ret;
121     } 
122   }
123
124   private Vector2 screenCenterPoint {
125     set {
126       NDalicPINVOKE.PinchGesture_screenCenterPoint_set(swigCPtr, Vector2.getCPtr(value));
127       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
128     } 
129     get {
130       global::System.IntPtr cPtr = NDalicPINVOKE.PinchGesture_screenCenterPoint_get(swigCPtr);
131       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
132       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133       return ret;
134     } 
135   }
136
137   private Vector2 localCenterPoint {
138     set {
139       NDalicPINVOKE.PinchGesture_localCenterPoint_set(swigCPtr, Vector2.getCPtr(value));
140       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
141     } 
142     get {
143       global::System.IntPtr cPtr = NDalicPINVOKE.PinchGesture_localCenterPoint_get(swigCPtr);
144       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
145       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
146       return ret;
147     } 
148   }
149
150 }
151
152 }