Merge "Resource ready signal for Controls (for ImageLoading)" into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / Key.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 Key : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal Key(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(Key obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~Key() {
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_Key(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 Key GetKeyFromPtr(global::System.IntPtr cPtr) {
50     Key ret = new Key(cPtr, false);
51     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
52     return ret;
53   }
54
55   public string KeyPressedName
56   {
57     get
58     {
59       return keyPressedName;
60     }
61   }
62
63   public string KeyPressed
64   {
65     get
66     {
67       return keyPressed;
68     }
69   }
70
71   public int KeyCode
72   {
73     get
74     {
75       return keyCode;
76     }
77   }
78
79   public int KeyModifier
80   {
81     get
82     {
83       return keyModifier;
84     }
85   }
86
87   public uint Time
88   {
89     get
90     {
91       return time;
92     }
93   }
94
95   public Key.StateType State
96   {
97     get
98     {
99       return state;
100     }
101   }
102
103   public Key() : this(NDalicPINVOKE.new_Key__SWIG_0(), true) {
104     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105   }
106
107   public Key(string keyName, string keyString, int keyCode, int keyModifier, uint timeStamp, Key.StateType keyState) : this(NDalicPINVOKE.new_Key__SWIG_1(keyName, keyString, keyCode, keyModifier, timeStamp, (int)keyState), true) {
108     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109   }
110
111   public bool IsShiftModifier() {
112     bool ret = NDalicPINVOKE.Key_IsShiftModifier(swigCPtr);
113     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
114     return ret;
115   }
116
117   public bool IsCtrlModifier() {
118     bool ret = NDalicPINVOKE.Key_IsCtrlModifier(swigCPtr);
119     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120     return ret;
121   }
122
123   public bool IsAltModifier() {
124     bool ret = NDalicPINVOKE.Key_IsAltModifier(swigCPtr);
125     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126     return ret;
127   }
128
129   private string keyPressedName {
130     set {
131       NDalicPINVOKE.Key_keyPressedName_set(swigCPtr, value);
132       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133     } 
134     get {
135       string ret = NDalicPINVOKE.Key_keyPressedName_get(swigCPtr);
136       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
137       return ret;
138     } 
139   }
140
141   private string keyPressed {
142     set {
143       NDalicPINVOKE.Key_keyPressed_set(swigCPtr, value);
144       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
145     } 
146     get {
147       string ret = NDalicPINVOKE.Key_keyPressed_get(swigCPtr);
148       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
149       return ret;
150     } 
151   }
152
153   private int keyCode {
154     set {
155       NDalicPINVOKE.Key_keyCode_set(swigCPtr, value);
156       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
157     } 
158     get {
159       int ret = NDalicPINVOKE.Key_keyCode_get(swigCPtr);
160       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161       return ret;
162     } 
163   }
164
165   private int keyModifier {
166     set {
167       NDalicPINVOKE.Key_keyModifier_set(swigCPtr, value);
168       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
169     } 
170     get {
171       int ret = NDalicPINVOKE.Key_keyModifier_get(swigCPtr);
172       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
173       return ret;
174     } 
175   }
176
177   private uint time {
178     set {
179       NDalicPINVOKE.Key_time_set(swigCPtr, value);
180       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
181     } 
182     get {
183       uint ret = NDalicPINVOKE.Key_time_get(swigCPtr);
184       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
185       return ret;
186     } 
187   }
188
189   private Key.StateType state {
190     set {
191       NDalicPINVOKE.Key_state_set(swigCPtr, (int)value);
192       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
193     } 
194     get {
195       Key.StateType ret = (Key.StateType)NDalicPINVOKE.Key_state_get(swigCPtr);
196       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
197       return ret;
198     } 
199   }
200
201   public enum StateType {
202     Down,
203     Up,
204     Last
205   }
206
207 }
208
209 }