示例#1
0
 internal ViewWrapper(string typeName, ViewWrapperImpl implementation, ViewStyle viewStyle) : base(Interop.ViewWrapper.Upcast(Interop.ViewWrapper.New(typeName, ViewWrapperImpl.getCPtr(implementation))), true, viewStyle)
 {
     viewWrapperImpl = implementation;
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#2
0
 internal ViewWrapper(string typeName, ViewWrapperImpl implementation) : this(Interop.ViewWrapper.ViewWrapper_New(typeName, ViewWrapperImpl.getCPtr(implementation)), true)
 {
     viewWrapperImpl = implementation;
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#3
0
        protected override void Dispose(DisposeTypes type)
        {
            if (disposed)
            {
                return;
            }

            if (type == DisposeTypes.Explicit)
            {
                if (viewWrapperImpl != null)
                {
                    viewWrapperImpl.OnSceneConnection    = null;
                    viewWrapperImpl.OnSceneDisconnection = null;
                    viewWrapperImpl.OnStageConnection    = null;
                    viewWrapperImpl.OnStageDisconnection = null;
                    viewWrapperImpl.OnChildAdd           = null;
                    viewWrapperImpl.OnChildRemove        = null;
                    viewWrapperImpl.OnPropertySet        = null;
                    viewWrapperImpl.OnSizeSet            = null;
                    viewWrapperImpl.OnSizeAnimation      = null;
                    viewWrapperImpl.OnTouch            = null;
                    viewWrapperImpl.OnHover            = null;
                    viewWrapperImpl.OnKey              = null;
                    viewWrapperImpl.OnWheel            = null;
                    viewWrapperImpl.OnRelayout         = null;
                    viewWrapperImpl.OnSetResizePolicy  = null;
                    viewWrapperImpl.GetNaturalSize     = null;
                    viewWrapperImpl.CalculateChildSize = null;
                    viewWrapperImpl.GetHeightForWidth  = null;
                    viewWrapperImpl.GetWidthForHeight  = null;
                    viewWrapperImpl.RelayoutDependentOnChildrenDimension = null;
                    viewWrapperImpl.RelayoutDependentOnChildren          = null;
                    viewWrapperImpl.OnCalculateRelayoutSize    = null;
                    viewWrapperImpl.OnLayoutNegotiated         = null;
                    viewWrapperImpl.OnStyleChange              = null;
                    viewWrapperImpl.OnAccessibilityActivated   = null;
                    viewWrapperImpl.OnAccessibilityPan         = null;
                    viewWrapperImpl.OnAccessibilityValueChange = null;
                    viewWrapperImpl.OnAccessibilityZoom        = null;
                    viewWrapperImpl.OnFocusGained              = null;
                    viewWrapperImpl.OnFocusLost            = null;
                    viewWrapperImpl.GetNextFocusableView   = null;
                    viewWrapperImpl.OnFocusChangeCommitted = null;
                    viewWrapperImpl.OnKeyboardEnter        = null;
                    viewWrapperImpl.OnPinch     = null;
                    viewWrapperImpl.OnPan       = null;
                    viewWrapperImpl.OnTap       = null;
                    viewWrapperImpl.OnLongPress = null;

                    viewWrapperImpl.Dispose();
                    viewWrapperImpl = null;
                }
            }

            base.Dispose(type);
        }
示例#4
0
        public static ViewWrapper New(string typeName, ViewWrapperImpl viewWrapper)
        {
            ViewWrapper ret = new ViewWrapper(Interop.ViewWrapperImpl.New(typeName, ViewWrapperImpl.getCPtr(viewWrapper)), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewWrapperImpl obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr);
 }