1 //------------------------------------------------------------------------------
4 // This file was automatically generated by SWIG (http://www.swig.org).
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 using System.ComponentModel;
17 /// <since_tizen> 3 </since_tizen>
18 public class WidgetViewSignal : global::System.IDisposable
20 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
24 /// <since_tizen> 3 </since_tizen>
25 protected bool swigCMemOwn;
27 internal WidgetViewSignal(global::System.IntPtr cPtr, bool cMemoryOwn)
29 swigCMemOwn = cMemoryOwn;
30 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
33 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WidgetViewSignal obj)
35 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
41 /// <since_tizen> 3 </since_tizen>
50 /// <since_tizen> 3 </since_tizen>
51 public virtual void Dispose()
55 if (swigCPtr.Handle != global::System.IntPtr.Zero)
60 NDalicManualPINVOKE.delete_WidgetViewSignal(swigCPtr);
62 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
64 global::System.GC.SuppressFinalize(this);
69 /// Queries whether there are any connected slots.
71 /// <returns>True if there are any slots connected to the signal</returns>
72 /// <since_tizen> 3 </since_tizen>
75 bool ret = NDalicManualPINVOKE.WidgetViewSignal_Empty(swigCPtr);
76 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
81 /// Queries the number of slots.
83 /// <returns>The number of slots connected to this signal</returns>
84 /// <since_tizen> 3 </since_tizen>
85 public uint GetConnectionCount()
87 uint ret = NDalicManualPINVOKE.WidgetViewSignal_GetConnectionCount(swigCPtr);
88 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93 /// Connects a function.
95 /// <param name="func">The function to connect</param>
96 /// <since_tizen> 3 </since_tizen>
97 public void Connect(System.Delegate func)
99 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
101 NDalicManualPINVOKE.WidgetViewSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
102 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107 /// Disconnects a function.
109 /// <param name="func">The function to disconnect</param>
110 /// <since_tizen> 3 </since_tizen>
111 public void Disconnect(System.Delegate func)
113 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
115 NDalicManualPINVOKE.WidgetViewSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
116 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121 /// Connects a member function.
123 /// <param name="arg">The member function to connect</param>
124 /// <since_tizen> 3 </since_tizen>
125 public void Emit(WidgetView arg)
127 NDalicManualPINVOKE.WidgetViewSignal_Emit(swigCPtr, WidgetView.getCPtr(arg));
128 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
134 /// <since_tizen> 3 </since_tizen>
135 public WidgetViewSignal() : this(NDalicManualPINVOKE.new_WidgetViewSignal(), true)
137 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();