Manual binding to add getter/setter APIs for various event classes (i.e. Gesture...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / gestures / key.i
1 %rename(Key) Dali::KeyEvent;
2 %rename(StateType) Dali::KeyEvent::State;
3
4 %csmethodmodifiers Dali::KeyEvent::keyPressedName "private";
5 %csmethodmodifiers Dali::KeyEvent::keyPressed "private";
6 %csmethodmodifiers Dali::KeyEvent::keyCode "private";
7 %csmethodmodifiers Dali::KeyEvent::keyModifier "private";
8 %csmethodmodifiers Dali::KeyEvent::time "private";
9 %csmethodmodifiers Dali::KeyEvent::state "private";
10
11 %typemap(cscode) Dali::KeyEvent %{
12   public static Key GetKeyFromPtr(global::System.IntPtr cPtr) {
13     Key ret = new Key(cPtr, false);
14     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
15     return ret;
16   }
17
18   public string KeyPressedName
19   {
20     get
21     {
22       return keyPressedName;
23     }
24   }
25
26   public string KeyPressed
27   {
28     get
29     {
30       return keyPressed;
31     }
32   }
33
34   public int KeyCode
35   {
36     get
37     {
38       return keyCode;
39     }
40   }
41
42   public int KeyModifier
43   {
44     get
45     {
46       return keyModifier;
47     }
48   }
49
50   public uint Time
51   {
52     get
53     {
54       return time;
55     }
56   }
57
58   public Key.StateType State
59   {
60     get
61     {
62       return state;
63     }
64   }
65 %}