Beispiel #1
0
        static public BaseHandle GetHandle(Tizen.NUI.BaseHandle nuiInstance)
        {
            BaseHandle ret;

            nuiInstanceToInstanceDict.TryGetValue(nuiInstance, out ret);

            return(ret);
        }
Beispiel #2
0
        protected void SetNUIInstance(Tizen.NUI.BaseHandle _handle)
        {
            if (handle != _handle)
            {
                handle = _handle;

                if (null != handle)
                {
                    nuiInstanceToInstanceDict.Add(handle, this);
                }
            }
        }
Beispiel #3
0
 internal BaseHandle(Tizen.NUI.BaseHandle nuiInstance)
 {
     SetNUIInstance(nuiInstance);
 }
Beispiel #4
0
 static private void RemoveHandle(Tizen.NUI.BaseHandle nuiInstance)
 {
     nuiInstanceToInstanceDict.Remove(nuiInstance);
 }
Beispiel #5
0
        /// <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);
        }
Beispiel #6
0
        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);
        }
Beispiel #7
0
 private void OnInternalAdded(BaseHandle view)
 {
     OnChildAdded(view);
 }
Beispiel #8
0
 private void OnInternalRemoved(BaseHandle view)
 {
     OnChildRemoved(view);
 }
Beispiel #9
0
 /// <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();
     }
 }
Beispiel #10
0
 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);
 }
Beispiel #11
0
        void OnInternalRemoved(/*VisualElement*/ BaseHandle view)
        {
            // view.MeasureInvalidated -= OnChildMeasureInvalidated;

            OnChildRemoved(view);
        }
Beispiel #12
0
        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);
        }
Beispiel #13
0
 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;
 }