8be4e0cc6a3c69e960563d28946414072ff59a3e
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / HoverSignal.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
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 Tizen.NUI {
12     using Tizen.NUI.BaseComponents;
13
14 internal class HoverSignal : global::System.IDisposable {
15   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
16   protected bool swigCMemOwn;
17
18   internal HoverSignal(global::System.IntPtr cPtr, bool cMemoryOwn) {
19     swigCMemOwn = cMemoryOwn;
20     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
21   }
22
23   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(HoverSignal obj) {
24     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
25   }
26
27   ~HoverSignal() {
28     DisposeQueue.Instance.Add(this);
29   }
30
31   public virtual void Dispose() {
32     if (!Window.IsInstalled()) {
33       DisposeQueue.Instance.Add(this);
34       return;
35     }
36
37     lock(this) {
38       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
39         if (swigCMemOwn) {
40           swigCMemOwn = false;
41           NDalicPINVOKE.delete_ActorHoverSignal(swigCPtr);
42         }
43         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
44       }
45       global::System.GC.SuppressFinalize(this);
46     }
47   }
48
49
50   public bool Empty() {
51     bool ret = NDalicPINVOKE.ActorHoverSignal_Empty(swigCPtr);
52     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53     return ret;
54   }
55
56   public uint GetConnectionCount() {
57     uint ret = NDalicPINVOKE.ActorHoverSignal_GetConnectionCount(swigCPtr);
58     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59     return ret;
60   }
61
62   public void Connect(System.Delegate func) {
63 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); 
64     {
65       NDalicPINVOKE.ActorHoverSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
66       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
67     }
68   }
69
70   public void Disconnect(System.Delegate func) {
71 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); 
72     {
73       NDalicPINVOKE.ActorHoverSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
74       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75     }
76   }
77
78   public bool Emit(View arg1, Hover arg2) {
79     bool ret = NDalicPINVOKE.ActorHoverSignal_Emit(swigCPtr, View.getCPtr(arg1), Hover.getCPtr(arg2));
80     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
81     return ret;
82   }
83
84   public HoverSignal() : this(NDalicPINVOKE.new_ActorHoverSignal(), true) {
85     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
86   }
87
88 }
89
90 }