3556ffc965bd78048fc48e0aca502e9ff7539e4e
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / manual / csharp / KeyboardPreFocusChangeSignal.cs
1 using System;
2
3 namespace Dali {
4
5 public delegate IntPtr SwigDelegateKeyboardPreFocusChangeSignal(IntPtr current, IntPtr proposed, View.KeyboardFocus.Direction direction);
6
7 public class KeyboardPreFocusChangeSignal : global::System.IDisposable {
8   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
9   protected bool swigCMemOwn;
10
11   internal KeyboardPreFocusChangeSignal(global::System.IntPtr cPtr, bool cMemoryOwn) {
12     swigCMemOwn = cMemoryOwn;
13     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
14   }
15
16   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeyboardPreFocusChangeSignal obj) {
17     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
18   }
19
20   ~KeyboardPreFocusChangeSignal() {
21     Dispose();
22   }
23
24   public virtual void Dispose() {
25     lock(this) {
26       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
27         if (swigCMemOwn) {
28           swigCMemOwn = false;
29           NDalicManualPINVOKE.delete_KeyboardPreFocusChangeSignal(swigCPtr);
30         }
31         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
32       }
33       global::System.GC.SuppressFinalize(this);
34     }
35   }
36
37   public bool Empty() {
38     bool ret = NDalicManualPINVOKE.KeyboardPreFocusChangeSignal_Empty(swigCPtr);
39     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
40     return ret;
41   }
42
43   public uint GetConnectionCount() {
44     uint ret = NDalicManualPINVOKE.KeyboardPreFocusChangeSignal_GetConnectionCount(swigCPtr);
45     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
46     return ret;
47   }
48
49   public void Connect(KeyboardFocusManager.PreFocusChangeEventCallbackDelegate func) {
50      NDalicManualPINVOKE.KeyboardPreFocusChangeSignal_Connect(swigCPtr, func);
51      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
52  }
53
54   public void Disconnect(System.Delegate func) {
55     System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
56     {
57       NDalicManualPINVOKE.KeyboardPreFocusChangeSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
58       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59     }
60   }
61
62   public Actor Emit(Actor arg1, Actor arg2, View.KeyboardFocus.Direction arg3) {
63     Actor ret = new Actor(NDalicManualPINVOKE.KeyboardPreFocusChangeSignal_Emit(swigCPtr, Actor.getCPtr(arg1), Actor.getCPtr(arg2), (int)arg3), true);
64     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
65     return ret;
66   }
67
68   public KeyboardPreFocusChangeSignal() : this(NDalicManualPINVOKE.new_KeyboardPreFocusChangeSignal(), true) {
69     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
70   }
71
72 }
73
74 }