DALi C# Tizen GBS build:
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / KeyEvent.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.9
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 KeyEvent : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal KeyEvent(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(KeyEvent obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~KeyEvent() {
27     Dispose();
28   }
29
30   public virtual void Dispose() {
31     lock(this) {
32       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33         if (swigCMemOwn) {
34           swigCMemOwn = false;
35           NDalicPINVOKE.delete_KeyEvent(swigCPtr);
36         }
37         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38       }
39       global::System.GC.SuppressFinalize(this);
40     }
41   }
42
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();
46     return ret;
47   }
48
49   public KeyEvent() : this(NDalicPINVOKE.new_KeyEvent__SWIG_0(), true) {
50     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51   }
52
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();
55   }
56
57   public bool IsShiftModifier() {
58     bool ret = NDalicPINVOKE.KeyEvent_IsShiftModifier(swigCPtr);
59     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
60     return ret;
61   }
62
63   public bool IsCtrlModifier() {
64     bool ret = NDalicPINVOKE.KeyEvent_IsCtrlModifier(swigCPtr);
65     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
66     return ret;
67   }
68
69   public bool IsAltModifier() {
70     bool ret = NDalicPINVOKE.KeyEvent_IsAltModifier(swigCPtr);
71     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
72     return ret;
73   }
74
75   public string keyPressedName {
76     set {
77       NDalicPINVOKE.KeyEvent_keyPressedName_set(swigCPtr, value);
78       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79     } 
80     get {
81       string ret = NDalicPINVOKE.KeyEvent_keyPressedName_get(swigCPtr);
82       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
83       return ret;
84     } 
85   }
86
87   public string keyPressed {
88     set {
89       NDalicPINVOKE.KeyEvent_keyPressed_set(swigCPtr, value);
90       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
91     } 
92     get {
93       string ret = NDalicPINVOKE.KeyEvent_keyPressed_get(swigCPtr);
94       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
95       return ret;
96     } 
97   }
98
99   public int keyCode {
100     set {
101       NDalicPINVOKE.KeyEvent_keyCode_set(swigCPtr, value);
102       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
103     } 
104     get {
105       int ret = NDalicPINVOKE.KeyEvent_keyCode_get(swigCPtr);
106       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107       return ret;
108     } 
109   }
110
111   public int keyModifier {
112     set {
113       NDalicPINVOKE.KeyEvent_keyModifier_set(swigCPtr, value);
114       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115     } 
116     get {
117       int ret = NDalicPINVOKE.KeyEvent_keyModifier_get(swigCPtr);
118       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
119       return ret;
120     } 
121   }
122
123   public uint time {
124     set {
125       NDalicPINVOKE.KeyEvent_time_set(swigCPtr, value);
126       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
127     } 
128     get {
129       uint ret = NDalicPINVOKE.KeyEvent_time_get(swigCPtr);
130       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
131       return ret;
132     } 
133   }
134
135   public KeyEvent.State state {
136     set {
137       NDalicPINVOKE.KeyEvent_state_set(swigCPtr, (int)value);
138       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
139     } 
140     get {
141       KeyEvent.State ret = (KeyEvent.State)NDalicPINVOKE.KeyEvent_state_get(swigCPtr);
142       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
143       return ret;
144     } 
145   }
146
147   public enum State {
148     Down,
149     Up,
150     Last
151   }
152
153 }
154
155 }