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 /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
19 [EditorBrowsable(EditorBrowsableState.Never)]
20 public class WidgetViewSignal : global::System.IDisposable
22 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
26 /// <since_tizen> 3 </since_tizen>
27 /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 protected bool swigCMemOwn;
31 internal WidgetViewSignal(global::System.IntPtr cPtr, bool cMemoryOwn)
33 swigCMemOwn = cMemoryOwn;
34 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
37 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WidgetViewSignal obj)
39 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
45 /// <since_tizen> 3 </since_tizen>
46 /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
47 [EditorBrowsable(EditorBrowsableState.Never)]
56 /// <since_tizen> 3 </since_tizen>
57 /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
58 [EditorBrowsable(EditorBrowsableState.Never)]
59 public virtual void Dispose()
63 if (swigCPtr.Handle != global::System.IntPtr.Zero)
68 NDalicManualPINVOKE.delete_WidgetViewSignal(swigCPtr);
70 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
72 global::System.GC.SuppressFinalize(this);
77 /// Queries whether there are any connected slots.
79 /// <returns>True if there are any slots connected to the signal</returns>
80 /// <since_tizen> 3 </since_tizen>
81 /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
82 [EditorBrowsable(EditorBrowsableState.Never)]
85 bool ret = NDalicManualPINVOKE.WidgetViewSignal_Empty(swigCPtr);
86 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
91 /// Queries the number of slots.
93 /// <returns>The number of slots connected to this signal</returns>
94 /// <since_tizen> 3 </since_tizen>
95 /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
96 [EditorBrowsable(EditorBrowsableState.Never)]
97 public uint GetConnectionCount()
99 uint ret = NDalicManualPINVOKE.WidgetViewSignal_GetConnectionCount(swigCPtr);
100 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105 /// Connects a function.
107 /// <param name="func">The function to connect</param>
108 /// <since_tizen> 3 </since_tizen>
109 /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
110 [EditorBrowsable(EditorBrowsableState.Never)]
111 public void Connect(System.Delegate func)
113 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
115 NDalicManualPINVOKE.WidgetViewSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
116 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121 /// Disconnects a function.
123 /// <param name="func">The function to disconnect</param>
124 /// <since_tizen> 3 </since_tizen>
125 /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
126 [EditorBrowsable(EditorBrowsableState.Never)]
127 public void Disconnect(System.Delegate func)
129 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
131 NDalicManualPINVOKE.WidgetViewSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
132 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
137 /// Connects a member function.
139 /// <param name="arg">The member function to connect</param>
140 /// <since_tizen> 3 </since_tizen>
141 /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
142 [EditorBrowsable(EditorBrowsableState.Never)]
143 public void Emit(WidgetView arg)
145 NDalicManualPINVOKE.WidgetViewSignal_Emit(swigCPtr, WidgetView.getCPtr(arg));
146 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152 /// <since_tizen> 3 </since_tizen>
153 /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
154 [EditorBrowsable(EditorBrowsableState.Never)]
155 public WidgetViewSignal() : this(NDalicManualPINVOKE.new_WidgetViewSignal(), true)
157 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();