Merge remote-tracking branch 'system-settings/tizen'
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / WidgetViewSignal.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.12
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 {
13
14     public class WidgetViewSignal : global::System.IDisposable
15     {
16         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17         protected bool swigCMemOwn;
18
19         internal WidgetViewSignal(global::System.IntPtr cPtr, bool cMemoryOwn)
20         {
21             swigCMemOwn = cMemoryOwn;
22             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23         }
24
25         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WidgetViewSignal obj)
26         {
27             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
28         }
29
30         ~WidgetViewSignal()
31         {
32             Dispose();
33         }
34
35         public virtual void Dispose()
36         {
37             lock (this)
38             {
39                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
40                 {
41                     if (swigCMemOwn)
42                     {
43                         swigCMemOwn = false;
44                         NDalicManualPINVOKE.delete_WidgetViewSignal(swigCPtr);
45                     }
46                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47                 }
48                 global::System.GC.SuppressFinalize(this);
49             }
50         }
51
52         public bool Empty()
53         {
54             bool ret = NDalicManualPINVOKE.WidgetViewSignal_Empty(swigCPtr);
55             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
56             return ret;
57         }
58
59         public uint GetConnectionCount()
60         {
61             uint ret = NDalicManualPINVOKE.WidgetViewSignal_GetConnectionCount(swigCPtr);
62             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
63             return ret;
64         }
65
66         public void Connect(System.Delegate func)
67         {
68             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
69             {
70                 NDalicManualPINVOKE.WidgetViewSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
71                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
72             }
73         }
74
75         public void Disconnect(System.Delegate func)
76         {
77             System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
78             {
79                 NDalicManualPINVOKE.WidgetViewSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
80                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
81             }
82         }
83
84         public void Emit(WidgetView arg)
85         {
86             NDalicManualPINVOKE.WidgetViewSignal_Emit(swigCPtr, WidgetView.getCPtr(arg));
87             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
88         }
89
90         public WidgetViewSignal() : this(NDalicManualPINVOKE.new_WidgetViewSignal(), true)
91         {
92             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93         }
94
95     }
96
97 }