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 //------------------------------------------------------------------------------
16 /// <since_tizen> 3 </since_tizen>
17 public class WidgetViewSignal : global::System.IDisposable
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
23 /// <since_tizen> 3 </since_tizen>
24 protected bool swigCMemOwn;
26 internal WidgetViewSignal(global::System.IntPtr cPtr, bool cMemoryOwn)
28 swigCMemOwn = cMemoryOwn;
29 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
32 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WidgetViewSignal obj)
34 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
40 /// <since_tizen> 3 </since_tizen>
49 /// <since_tizen> 3 </since_tizen>
50 public virtual void Dispose()
54 if (swigCPtr.Handle != global::System.IntPtr.Zero)
59 NDalicManualPINVOKE.delete_WidgetViewSignal(swigCPtr);
61 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
63 global::System.GC.SuppressFinalize(this);
68 /// Queries whether there are any connected slots.
70 /// <returns>True if there are any slots connected to the signal</returns>
71 /// <since_tizen> 3 </since_tizen>
74 bool ret = NDalicManualPINVOKE.WidgetViewSignal_Empty(swigCPtr);
75 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
80 /// Queries the number of slots.
82 /// <returns>The number of slots connected to this signal</returns>
83 /// <since_tizen> 3 </since_tizen>
84 public uint GetConnectionCount()
86 uint ret = NDalicManualPINVOKE.WidgetViewSignal_GetConnectionCount(swigCPtr);
87 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92 /// Connects a function.
94 /// <param name="func">The function to connect</param>
95 /// <since_tizen> 3 </since_tizen>
96 public void Connect(System.Delegate func)
98 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
100 NDalicManualPINVOKE.WidgetViewSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
101 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
106 /// Disconnects a function.
108 /// <param name="func">The function to disconnect</param>
109 /// <since_tizen> 3 </since_tizen>
110 public void Disconnect(System.Delegate func)
112 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
114 NDalicManualPINVOKE.WidgetViewSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
115 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120 /// Connects a member function.
122 /// <param name="arg">The member function to connect</param>
123 /// <since_tizen> 3 </since_tizen>
124 public void Emit(WidgetView arg)
126 NDalicManualPINVOKE.WidgetViewSignal_Emit(swigCPtr, WidgetView.getCPtr(arg));
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133 /// <since_tizen> 3 </since_tizen>
134 public WidgetViewSignal() : this(NDalicManualPINVOKE.new_WidgetViewSignal(), true)
136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();