1 //------------------------------------------------------------------------------
4 // This file was automatically generated by SWIG (http://www.swig.org).
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
13 public class KeyEvent : global::System.IDisposable {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 protected bool swigCMemOwn;
17 internal KeyEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
18 swigCMemOwn = cMemoryOwn;
19 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
22 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeyEvent obj) {
23 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
27 DisposeQueue.Instance.Add(this);
30 public virtual void Dispose() {
31 if (!Stage.IsInstalled()) {
32 DisposeQueue.Instance.Add(this);
37 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
40 NDalicPINVOKE.delete_KeyEvent(swigCPtr);
42 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
44 global::System.GC.SuppressFinalize(this);
49 public static KeyEvent GetKeyEventFromPtr(global::System.IntPtr cPtr) {
50 KeyEvent ret = new KeyEvent(cPtr, false);
51 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
55 public KeyEvent() : this(NDalicPINVOKE.new_KeyEvent__SWIG_0(), true) {
56 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59 public KeyEvent(string keyName, string keyString, int keyCode, int keyModifier, uint timeStamp, KeyEvent.State keyState) : this(NDalicPINVOKE.new_KeyEvent__SWIG_1(keyName, keyString, keyCode, keyModifier, timeStamp, (int)keyState), true) {
60 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
63 public bool IsShiftModifier() {
64 bool ret = NDalicPINVOKE.KeyEvent_IsShiftModifier(swigCPtr);
65 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
69 public bool IsCtrlModifier() {
70 bool ret = NDalicPINVOKE.KeyEvent_IsCtrlModifier(swigCPtr);
71 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75 public bool IsAltModifier() {
76 bool ret = NDalicPINVOKE.KeyEvent_IsAltModifier(swigCPtr);
77 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
81 public string keyPressedName {
83 NDalicPINVOKE.KeyEvent_keyPressedName_set(swigCPtr, value);
84 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
87 string ret = NDalicPINVOKE.KeyEvent_keyPressedName_get(swigCPtr);
88 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93 public string keyPressed {
95 NDalicPINVOKE.KeyEvent_keyPressed_set(swigCPtr, value);
96 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
99 string ret = NDalicPINVOKE.KeyEvent_keyPressed_get(swigCPtr);
100 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107 NDalicPINVOKE.KeyEvent_keyCode_set(swigCPtr, value);
108 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111 int ret = NDalicPINVOKE.KeyEvent_keyCode_get(swigCPtr);
112 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117 public int keyModifier {
119 NDalicPINVOKE.KeyEvent_keyModifier_set(swigCPtr, value);
120 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
123 int ret = NDalicPINVOKE.KeyEvent_keyModifier_get(swigCPtr);
124 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
131 NDalicPINVOKE.KeyEvent_time_set(swigCPtr, value);
132 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135 uint ret = NDalicPINVOKE.KeyEvent_time_get(swigCPtr);
136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
141 public KeyEvent.State state {
143 NDalicPINVOKE.KeyEvent_state_set(swigCPtr, (int)value);
144 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
147 KeyEvent.State ret = (KeyEvent.State)NDalicPINVOKE.KeyEvent_state_get(swigCPtr);
148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();