Exemplo n.º 1
0
        public static CGPoint ToPointFromUtmk(this NMapView This, NPoint utmk)
        {
            CGPoint ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_NPoint(This.Handle, Selector.GetHandle("toPointFromUtmk:"), utmk);
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_stret_NPoint(out ret, This.Handle, Selector.GetHandle("toPointFromUtmk:"), utmk);
                }
            }
            else if (IntPtr.Size == 8)
            {
                ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_NPoint(This.Handle, Selector.GetHandle("toPointFromUtmk:"), utmk);
            }
            else
            {
                ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_NPoint(This.Handle, Selector.GetHandle("toPointFromUtmk:"), utmk);
            }
            return(ret);
        }
Exemplo n.º 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);
        }