static public BaseHandle GetHandle(Tizen.NUI.BaseHandle nuiInstance) { BaseHandle ret; nuiInstanceToInstanceDict.TryGetValue(nuiInstance, out ret); return(ret); }
protected void SetNUIInstance(Tizen.NUI.BaseHandle _handle) { if (handle != _handle) { handle = _handle; if (null != handle) { nuiInstanceToInstanceDict.Add(handle, this); } } }
internal BaseHandle(Tizen.NUI.BaseHandle nuiInstance) { SetNUIInstance(nuiInstance); }
static private void RemoveHandle(Tizen.NUI.BaseHandle nuiInstance) { nuiInstanceToInstanceDict.Remove(nuiInstance); }
/// <summary> /// [Draft] Downcasts a handle to a AbsoluteLayout handle. /// If handle points to a AbsoluteLayout, the downcast produces a valid handle. /// If not, the returned handle is left uninitialized. /// </summary> /// <param name="handle">handle to an object</param> /// <returns>Handle to a AbsoluteLayout or an uninitialized handle</returns> internal static AbsoluteLayout DownCast(BaseHandle handle) { AbsoluteLayout ret = new AbsoluteLayout(LayoutPINVOKE.AbsoluteLayout_DownCast(BaseHandle.getCPtr(handle)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static AutofillContainer DownCast(BaseHandle handle) { AutofillContainer ret = new AutofillContainer(Interop.AutofillContainer.DownCast(BaseHandle.getCPtr(handle)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private void OnInternalAdded(BaseHandle view) { OnChildAdded(view); }
private void OnInternalRemoved(BaseHandle view) { OnChildRemoved(view); }
/// <summary> /// Create an instance of BaseHandle. /// </summary> /// <param name="handle">The BaseHandle instance.</param> /// <since_tizen> 3 </since_tizen> public BaseHandle(BaseHandle handle) : this(Interop.BaseHandle.new_BaseHandle__SWIG_2(BaseHandle.getCPtr(handle))) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BaseHandle obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtrCopy); }
void OnInternalRemoved(/*VisualElement*/ BaseHandle view) { // view.MeasureInvalidated -= OnChildMeasureInvalidated; OnChildRemoved(view); }
internal static WidgetViewManager DownCast(BaseHandle handle) { WidgetViewManager ret = new WidgetViewManager(Interop.WidgetViewManager.DownCast(BaseHandle.getCPtr(handle)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static FlexLayout DownCast(BaseHandle handle) { FlexLayout ret = new FlexLayout(Interop.FlexLayout.FlexLayout_DownCast(BaseHandle.getCPtr(handle)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; }