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 : Disposable
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>
42 protected override void Dispose(DisposeTypes type)
49 if (swigCPtr.Handle != global::System.IntPtr.Zero)
54 Interop.WidgetView.delete_WidgetViewSignal(swigCPtr);
56 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
63 /// Queries whether there are any connected slots.
65 /// <returns>True if there are any slots connected to the signal</returns>
66 /// <since_tizen> 3 </since_tizen>
69 bool ret = Interop.WidgetView.WidgetViewSignal_Empty(swigCPtr);
70 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75 /// Queries the number of slots.
77 /// <returns>The number of slots connected to this signal</returns>
78 /// <since_tizen> 3 </since_tizen>
79 public uint GetConnectionCount()
81 uint ret = Interop.WidgetView.WidgetViewSignal_GetConnectionCount(swigCPtr);
82 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
87 /// Connects a function.
89 /// <param name="func">The function to connect</param>
90 /// <since_tizen> 3 </since_tizen>
91 public void Connect(System.Delegate func)
93 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
95 Interop.WidgetView.WidgetViewSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
96 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101 /// Disconnects a function.
103 /// <param name="func">The function to disconnect</param>
104 /// <since_tizen> 3 </since_tizen>
105 public void Disconnect(System.Delegate func)
107 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
109 Interop.WidgetView.WidgetViewSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
110 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115 /// Connects a member function.
117 /// <param name="arg">The member function to connect</param>
118 /// <since_tizen> 3 </since_tizen>
119 public void Emit(WidgetView arg)
121 Interop.WidgetView.WidgetViewSignal_Emit(swigCPtr, WidgetView.getCPtr(arg));
122 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
128 /// <since_tizen> 3 </since_tizen>
129 public WidgetViewSignal() : this(Interop.WidgetView.new_WidgetViewSignal(), true)
131 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();