Ejemplo n.º 1
0
        public static NPoint FromPointInUtmk(this NMapView This, CGPoint pt)
        {
            NPoint ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.NPoint_objc_msgSend_CGPoint(This.Handle, Selector.GetHandle("fromPointInUtmk:"), pt);
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.NPoint_objc_msgSend_stret_CGPoint(out ret, This.Handle, Selector.GetHandle("fromPointInUtmk:"), pt);
                }
            }
            else if (IntPtr.Size == 8)
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NPoint_objc_msgSend_CGPoint(This.Handle, Selector.GetHandle("fromPointInUtmk:"), pt);
            }
            else
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NPoint_objc_msgSend_CGPoint(This.Handle, Selector.GetHandle("fromPointInUtmk:"), pt);
            }
            return(ret);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
        public static CGPoint ToMapPointFromViewPortOffset(this NMapView This, CGPoint offset)
        {
            CGPoint ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_CGPoint(This.Handle, Selector.GetHandle("toMapPointFromViewPortOffset:"), offset);
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_stret_CGPoint(out ret, This.Handle, Selector.GetHandle("toMapPointFromViewPortOffset:"), offset);
                }
            }
            else if (IntPtr.Size == 8)
            {
                ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_CGPoint(This.Handle, Selector.GetHandle("toMapPointFromViewPortOffset:"), offset);
            }
            else
            {
                ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_CGPoint(This.Handle, Selector.GetHandle("toMapPointFromViewPortOffset:"), offset);
            }
            return(ret);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
        public static NGeoRect ScreenBoundsBy(this NMapView This, double areaRatio)
        {
            NGeoRect ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.NGeoRect_objc_msgSend_Double(This.Handle, Selector.GetHandle("screenBoundsBy:"), areaRatio);
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.NGeoRect_objc_msgSend_stret_Double(out ret, This.Handle, Selector.GetHandle("screenBoundsBy:"), areaRatio);
                }
            }
            else if (IntPtr.Size == 8)
            {
                global::NMapViewerSDK.iOS.Messaging.NGeoRect_objc_msgSend_stret_Double(out ret, This.Handle, Selector.GetHandle("screenBoundsBy:"), areaRatio);
            }
            else
            {
                global::NMapViewerSDK.iOS.Messaging.NGeoRect_objc_msgSend_stret_Double(out ret, This.Handle, Selector.GetHandle("screenBoundsBy:"), areaRatio);
            }
            return(ret);
        }
Ejemplo n.º 6
0
        public static NSize ToSizeInViewPort(this NMapView This, NSize size)
        {
            NSize ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.NSize_objc_msgSend_NSize(This.Handle, Selector.GetHandle("toSizeInViewPort:"), size);
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.NSize_objc_msgSend_stret_NSize(out ret, This.Handle, Selector.GetHandle("toSizeInViewPort:"), size);
                }
            }
            else if (IntPtr.Size == 8)
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NSize_objc_msgSend_NSize(This.Handle, Selector.GetHandle("toSizeInViewPort:"), size);
            }
            else
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NSize_objc_msgSend_NSize(This.Handle, Selector.GetHandle("toSizeInViewPort:"), size);
            }
            return(ret);
        }
Ejemplo n.º 7
0
        public static NRect ScreenBoundsInUtmk(this NMapView This)
        {
            NRect ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.NRect_objc_msgSend(This.Handle, Selector.GetHandle("screenBoundsInUtmk"));
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.NRect_objc_msgSend_stret(out ret, This.Handle, Selector.GetHandle("screenBoundsInUtmk"));
                }
            }
            else if (IntPtr.Size == 8)
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NRect_objc_msgSend(This.Handle, Selector.GetHandle("screenBoundsInUtmk"));
            }
            else
            {
                global::NMapViewerSDK.iOS.Messaging.NRect_objc_msgSend_stret(out ret, This.Handle, Selector.GetHandle("screenBoundsInUtmk"));
            }
            return(ret);
        }
Ejemplo n.º 8
0
        public static NRect ToBoundsInUtmk(this NMapView This, NGeoRect bounds)
        {
            NRect ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.NRect_objc_msgSend_NGeoRect(This.Handle, Selector.GetHandle("toBoundsInUtmk:"), bounds);
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.NRect_objc_msgSend_stret_NGeoRect(out ret, This.Handle, Selector.GetHandle("toBoundsInUtmk:"), bounds);
                }
            }
            else if (IntPtr.Size == 8)
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NRect_objc_msgSend_NGeoRect(This.Handle, Selector.GetHandle("toBoundsInUtmk:"), bounds);
            }
            else
            {
                global::NMapViewerSDK.iOS.Messaging.NRect_objc_msgSend_stret_NGeoRect(out ret, This.Handle, Selector.GetHandle("toBoundsInUtmk:"), bounds);
            }
            return(ret);
        }
Ejemplo n.º 9
0
        public static NGPoint ToMapPointFromLocation(this NMapView This, NGeoPoint location)
        {
            NGPoint ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.NGPoint_objc_msgSend_NGeoPoint(This.Handle, Selector.GetHandle("toMapPointFromLocation:"), location);
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.NGPoint_objc_msgSend_stret_NGeoPoint(out ret, This.Handle, Selector.GetHandle("toMapPointFromLocation:"), location);
                }
            }
            else if (IntPtr.Size == 8)
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NGPoint_objc_msgSend_NGeoPoint(This.Handle, Selector.GetHandle("toMapPointFromLocation:"), location);
            }
            else
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NGPoint_objc_msgSend_NGeoPoint(This.Handle, Selector.GetHandle("toMapPointFromLocation:"), location);
            }
            return(ret);
        }
Ejemplo n.º 10
0
        public static NPoint MapBoundsCenterInUtmkX(this NMapView This)
        {
            NPoint ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.NPoint_objc_msgSend(This.Handle, Selector.GetHandle("mapBoundsCenterInUtmkX"));
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.NPoint_objc_msgSend_stret(out ret, This.Handle, Selector.GetHandle("mapBoundsCenterInUtmkX"));
                }
            }
            else if (IntPtr.Size == 8)
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NPoint_objc_msgSend(This.Handle, Selector.GetHandle("mapBoundsCenterInUtmkX"));
            }
            else
            {
                ret = global::NMapViewerSDK.iOS.Messaging.NPoint_objc_msgSend(This.Handle, Selector.GetHandle("mapBoundsCenterInUtmkX"));
            }
            return(ret);
        }
Ejemplo n.º 11
0
        public static CGRect BoundsVisible(this NMapView This)
        {
            CGRect ret;

            if (Runtime.Arch == Arch.DEVICE)
            {
                if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGRect_objc_msgSend(This.Handle, Selector.GetHandle("boundsVisible"));
                }
                else
                {
                    global::NMapViewerSDK.iOS.Messaging.CGRect_objc_msgSend_stret(out ret, This.Handle, Selector.GetHandle("boundsVisible"));
                }
            }
            else if (IntPtr.Size == 8)
            {
                global::NMapViewerSDK.iOS.Messaging.CGRect_objc_msgSend_stret(out ret, This.Handle, Selector.GetHandle("boundsVisible"));
            }
            else
            {
                global::NMapViewerSDK.iOS.Messaging.CGRect_objc_msgSend_stret(out ret, This.Handle, Selector.GetHandle("boundsVisible"));
            }
            return(ret);
        }
Ejemplo n.º 12
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);
        }
Ejemplo n.º 13
0
        public virtual CGPoint BoundsOffset(NMapView mapView)
        {
            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(this.Handle, Selector.GetHandle("boundsOffset:"), mapView.Handle);
                    }
                    else
                    {
                        global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_stret_IntPtr(out ret, this.Handle, Selector.GetHandle("boundsOffset:"), mapView.Handle);
                    }
                }
                else if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("boundsOffset:"), mapView.Handle);
                }
                else
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("boundsOffset:"), mapView.Handle);
                }
            }
            else
            {
                if (Runtime.Arch == Arch.DEVICE)
                {
                    if (IntPtr.Size == 8)
                    {
                        ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("boundsOffset:"), mapView.Handle);
                    }
                    else
                    {
                        global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSendSuper_stret_IntPtr(out ret, this.SuperHandle, Selector.GetHandle("boundsOffset:"), mapView.Handle);
                    }
                }
                else if (IntPtr.Size == 8)
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("boundsOffset:"), mapView.Handle);
                }
                else
                {
                    ret = global::NMapViewerSDK.iOS.Messaging.CGPoint_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("boundsOffset:"), mapView.Handle);
                }
            }
            return(ret);
        }