Merge "Add PIXEL_SIZE and ELLIPSIS property in text-controls" into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / Wheel.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 Wheel : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal Wheel(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(Wheel obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~Wheel() {
27     DisposeQueue.Instance.Add(this);
28   }
29
30   public virtual void Dispose() {
31     if (!Stage.IsInstalled()) {
32       DisposeQueue.Instance.Add(this);
33       return;
34     }
35
36     lock(this) {
37       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
38         if (swigCMemOwn) {
39           swigCMemOwn = false;
40           NDalicPINVOKE.delete_Wheel(swigCPtr);
41         }
42         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
43       }
44       global::System.GC.SuppressFinalize(this);
45     }
46   }
47
48
49   public static Wheel GetWheelFromPtr(global::System.IntPtr cPtr) {
50     Wheel ret = new Wheel(cPtr, false);
51     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
52     return ret;
53   }
54
55   public Wheel.WheelType Type
56   {
57     get
58     {
59       return type;
60     }
61   }
62
63   public int Direction
64   {
65     get
66     {
67       return direction;
68     }
69   }
70
71   public uint Modifiers
72   {
73     get
74     {
75       return modifiers;
76     }
77   }
78
79   public Vector2 Point
80   {
81     get
82     {
83       return point;
84     }
85   }
86
87   public int Z
88   {
89     get
90     {
91       return z;
92     }
93   }
94
95   public uint TimeStamp
96   {
97     get
98     {
99       return timeStamp;
100     }
101   }
102
103   public Wheel() : this(NDalicPINVOKE.new_Wheel__SWIG_0(), true) {
104     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105   }
106
107   public Wheel(Wheel.WheelType type, int direction, uint modifiers, Vector2 point, int z, uint timeStamp) : this(NDalicPINVOKE.new_Wheel__SWIG_1((int)type, direction, modifiers, Vector2.getCPtr(point), z, timeStamp), true) {
108     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109   }
110
111   public bool IsShiftModifier() {
112     bool ret = NDalicPINVOKE.Wheel_IsShiftModifier(swigCPtr);
113     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
114     return ret;
115   }
116
117   public bool IsCtrlModifier() {
118     bool ret = NDalicPINVOKE.Wheel_IsCtrlModifier(swigCPtr);
119     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120     return ret;
121   }
122
123   public bool IsAltModifier() {
124     bool ret = NDalicPINVOKE.Wheel_IsAltModifier(swigCPtr);
125     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126     return ret;
127   }
128
129   private Wheel.WheelType type {
130     set {
131       NDalicPINVOKE.Wheel_type_set(swigCPtr, (int)value);
132       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133     } 
134     get {
135       Wheel.WheelType ret = (Wheel.WheelType)NDalicPINVOKE.Wheel_type_get(swigCPtr);
136       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
137       return ret;
138     } 
139   }
140
141   private int direction {
142     set {
143       NDalicPINVOKE.Wheel_direction_set(swigCPtr, value);
144       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
145     } 
146     get {
147       int ret = NDalicPINVOKE.Wheel_direction_get(swigCPtr);
148       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
149       return ret;
150     } 
151   }
152
153   private uint modifiers {
154     set {
155       NDalicPINVOKE.Wheel_modifiers_set(swigCPtr, value);
156       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
157     } 
158     get {
159       uint ret = NDalicPINVOKE.Wheel_modifiers_get(swigCPtr);
160       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161       return ret;
162     } 
163   }
164
165   private Vector2 point {
166     set {
167       NDalicPINVOKE.Wheel_point_set(swigCPtr, Vector2.getCPtr(value));
168       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
169     } 
170     get {
171       global::System.IntPtr cPtr = NDalicPINVOKE.Wheel_point_get(swigCPtr);
172       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
173       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
174       return ret;
175     } 
176   }
177
178   private int z {
179     set {
180       NDalicPINVOKE.Wheel_z_set(swigCPtr, value);
181       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
182     } 
183     get {
184       int ret = NDalicPINVOKE.Wheel_z_get(swigCPtr);
185       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
186       return ret;
187     } 
188   }
189
190   private uint timeStamp {
191     set {
192       NDalicPINVOKE.Wheel_timeStamp_set(swigCPtr, value);
193       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
194     } 
195     get {
196       uint ret = NDalicPINVOKE.Wheel_timeStamp_get(swigCPtr);
197       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
198       return ret;
199     } 
200   }
201
202   public enum WheelType {
203     MOUSE_WHEEL,
204     CUSTOM_WHEEL
205   }
206
207 }
208
209 }