1 //------------------------------------------------------------------------------
\r
2 // <auto-generated />
\r
4 // This file was automatically generated by SWIG (http://www.swig.org).
\r
7 // Do not make changes to this file unless you know what you are doing--modify
\r
8 // the SWIG interface file instead.
\r
9 //------------------------------------------------------------------------------
\r
14 public class Key : global::System.IDisposable
\r
16 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
17 protected bool swigCMemOwn;
\r
19 internal Key(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
21 swigCMemOwn = cMemoryOwn;
\r
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Key obj)
\r
27 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
32 DisposeQueue.Instance.Add(this);
\r
35 public virtual void Dispose()
\r
37 if (!Stage.IsInstalled())
\r
39 DisposeQueue.Instance.Add(this);
\r
45 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
49 swigCMemOwn = false;
\r
50 NDalicPINVOKE.delete_Key(swigCPtr);
\r
52 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
54 global::System.GC.SuppressFinalize(this);
\r
59 internal static Key GetKeyFromPtr(global::System.IntPtr cPtr)
\r
61 Key ret = new Key(cPtr, false);
\r
62 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
66 public string KeyPressedName
\r
70 return keyPressedName;
\r
74 /* duplicated with KeyPressedName : removed
\r
75 public string KeyPressed
\r
92 public int KeyModifier
\r
108 public Key.StateType State
\r
116 public Key() : this(NDalicPINVOKE.new_Key__SWIG_0(), true)
\r
118 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
121 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)
\r
123 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
126 public bool IsShiftModifier()
\r
128 bool ret = NDalicPINVOKE.Key_IsShiftModifier(swigCPtr);
\r
129 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
133 public bool IsCtrlModifier()
\r
135 bool ret = NDalicPINVOKE.Key_IsCtrlModifier(swigCPtr);
\r
136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
140 public bool IsAltModifier()
\r
142 bool ret = NDalicPINVOKE.Key_IsAltModifier(swigCPtr);
\r
143 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
147 private string keyPressedName
\r
151 NDalicPINVOKE.Key_keyPressedName_set(swigCPtr, value);
\r
152 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
156 string ret = NDalicPINVOKE.Key_keyPressedName_get(swigCPtr);
\r
157 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
162 private string keyPressed
\r
166 NDalicPINVOKE.Key_keyPressed_set(swigCPtr, value);
\r
167 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
171 string ret = NDalicPINVOKE.Key_keyPressed_get(swigCPtr);
\r
172 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
177 private int keyCode
\r
181 NDalicPINVOKE.Key_keyCode_set(swigCPtr, value);
\r
182 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
186 int ret = NDalicPINVOKE.Key_keyCode_get(swigCPtr);
\r
187 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
192 private int keyModifier
\r
196 NDalicPINVOKE.Key_keyModifier_set(swigCPtr, value);
\r
197 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
201 int ret = NDalicPINVOKE.Key_keyModifier_get(swigCPtr);
\r
202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
211 NDalicPINVOKE.Key_time_set(swigCPtr, value);
\r
212 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
216 uint ret = NDalicPINVOKE.Key_time_get(swigCPtr);
\r
217 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
222 private Key.StateType state
\r
226 NDalicPINVOKE.Key_state_set(swigCPtr, (int)value);
\r
227 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
231 Key.StateType ret = (Key.StateType)NDalicPINVOKE.Key_state_get(swigCPtr);
\r
232 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
237 public enum StateType
\r