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;
30 public virtual void Dispose() {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
35 NDalicPINVOKE.delete_KeyEvent(swigCPtr);
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 global::System.GC.SuppressFinalize(this);
43 public static KeyEvent GetKeyEventFromPtr(global::System.IntPtr cPtr) {
44 KeyEvent ret = new KeyEvent(cPtr, false);
45 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
49 public KeyEvent() : this(NDalicPINVOKE.new_KeyEvent__SWIG_0(), true) {
50 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53 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) {
54 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
57 public bool IsShiftModifier() {
58 bool ret = NDalicPINVOKE.KeyEvent_IsShiftModifier(swigCPtr);
59 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
63 public bool IsCtrlModifier() {
64 bool ret = NDalicPINVOKE.KeyEvent_IsCtrlModifier(swigCPtr);
65 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
69 public bool IsAltModifier() {
70 bool ret = NDalicPINVOKE.KeyEvent_IsAltModifier(swigCPtr);
71 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75 public string keyPressedName {
77 NDalicPINVOKE.KeyEvent_keyPressedName_set(swigCPtr, value);
78 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
81 string ret = NDalicPINVOKE.KeyEvent_keyPressedName_get(swigCPtr);
82 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
87 public string keyPressed {
89 NDalicPINVOKE.KeyEvent_keyPressed_set(swigCPtr, value);
90 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93 string ret = NDalicPINVOKE.KeyEvent_keyPressed_get(swigCPtr);
94 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101 NDalicPINVOKE.KeyEvent_keyCode_set(swigCPtr, value);
102 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105 int ret = NDalicPINVOKE.KeyEvent_keyCode_get(swigCPtr);
106 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111 public int keyModifier {
113 NDalicPINVOKE.KeyEvent_keyModifier_set(swigCPtr, value);
114 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117 int ret = NDalicPINVOKE.KeyEvent_keyModifier_get(swigCPtr);
118 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
125 NDalicPINVOKE.KeyEvent_time_set(swigCPtr, value);
126 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
129 uint ret = NDalicPINVOKE.KeyEvent_time_get(swigCPtr);
130 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135 public KeyEvent.State state {
137 NDalicPINVOKE.KeyEvent_state_set(swigCPtr, (int)value);
138 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
141 KeyEvent.State ret = (KeyEvent.State)NDalicPINVOKE.KeyEvent_state_get(swigCPtr);
142 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();