Пример #1
0
        public virtual CGPoint ScreenPosition(NMapView mapView, NGRect viewPortOrigin)
        {
            if (mapView == null)
            {
                throw new ArgumentNullException("mapView");
            }
            CGPoint ret;

            if (IsDirectBinding)
            {
                if (Runtime.Arch == Arch.DEVICE)
                {
                    if (IntPtr.Size == 8)
                    {
                        ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_IntPtr_NGRect(this.Handle, Selector.GetHandle("screenPosition:viewPortOrigin:"), mapView.Handle, viewPortOrigin);
                    }
                    else
                    {
                        global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_stret_IntPtr_NGRect(out ret, this.Handle, Selector.GetHandle("screenPosition:viewPortOrigin:"), mapView.Handle, viewPortOrigin);
                    }
                }
                else if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_IntPtr_NGRect(this.Handle, Selector.GetHandle("screenPosition:viewPortOrigin:"), mapView.Handle, viewPortOrigin);
                }
                else
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_IntPtr_NGRect(this.Handle, Selector.GetHandle("screenPosition:viewPortOrigin:"), mapView.Handle, viewPortOrigin);
                }
            }
            else
            {
                if (Runtime.Arch == Arch.DEVICE)
                {
                    if (IntPtr.Size == 8)
                    {
                        ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSendSuper_IntPtr_NGRect(this.SuperHandle, Selector.GetHandle("screenPosition:viewPortOrigin:"), mapView.Handle, viewPortOrigin);
                    }
                    else
                    {
                        global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSendSuper_stret_IntPtr_NGRect(out ret, this.SuperHandle, Selector.GetHandle("screenPosition:viewPortOrigin:"), mapView.Handle, viewPortOrigin);
                    }
                }
                else if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSendSuper_IntPtr_NGRect(this.SuperHandle, Selector.GetHandle("screenPosition:viewPortOrigin:"), mapView.Handle, viewPortOrigin);
                }
                else
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSendSuper_IntPtr_NGRect(this.SuperHandle, Selector.GetHandle("screenPosition:viewPortOrigin:"), mapView.Handle, viewPortOrigin);
                }
            }
            return(ret);
        }
Пример #2
0
        public static NGPoint ToMapPointFromUtmk(this NMapView This, NPoint utmk, int level, NGRect viewPort)
        {
            NGPoint ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.NGPoint_objc_msgSend_NPoint_int_NGRect(This.Handle, Selector.GetHandle("toMapPointFromUtmk:atLevel:viewPort:"), utmk, level, viewPort);
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.NGPoint_objc_msgSend_stret_NPoint_int_NGRect(out ret, This.Handle, Selector.GetHandle("toMapPointFromUtmk:atLevel:viewPort:"), utmk, level, viewPort);
                }
            }
            else if (IntPtr.Size == 8)
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NGPoint_objc_msgSend_NPoint_int_NGRect(This.Handle, Selector.GetHandle("toMapPointFromUtmk:atLevel:viewPort:"), utmk, level, viewPort);
            }
            else
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NGPoint_objc_msgSend_NPoint_int_NGRect(This.Handle, Selector.GetHandle("toMapPointFromUtmk:atLevel:viewPort:"), utmk, level, viewPort);
            }
            return(ret);
        }