コード例 #1
0
        static int n_AddPolyline_Lorg_osmdroid_api_Polyline_(IntPtr jnienv, IntPtr native__this, IntPtr native_polyline)
        {
            global::Osmdroid.Api.IMap     __this   = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.IMap> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.Api.Polyline polyline = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.Polyline> (native_polyline, JniHandleOwnership.DoNotTransfer);
            int __ret = __this.AddPolyline(polyline);

            return(__ret);
        }
コード例 #2
0
        static IntPtr n_Points_Ljava_util_List_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Osmdroid.Api.Polyline __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.Polyline> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            System.Collections.Generic.IList <Osmdroid.Api.IGeoPoint> p0 = global::Android.Runtime.JavaList <global::Osmdroid.Api.IGeoPoint> .FromJniHandle(native_p0, JniHandleOwnership.DoNotTransfer);

            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Points(p0));

            return(__ret);
        }
コード例 #3
0
        public int AddPolyline(global::Osmdroid.Api.Polyline polyline)
        {
            if (id_addPolyline_Lorg_osmdroid_api_Polyline_ == IntPtr.Zero)
            {
                id_addPolyline_Lorg_osmdroid_api_Polyline_ = JNIEnv.GetMethodID(class_ref, "addPolyline", "(Lorg/osmdroid/api/Polyline;)I");
            }
            int __ret = JNIEnv.CallIntMethod(Handle, id_addPolyline_Lorg_osmdroid_api_Polyline_, new JValue(polyline));

            return(__ret);
        }
コード例 #4
0
        static IntPtr n_Points_arrayLorg_osmdroid_api_IGeoPoint_(IntPtr jnienv, IntPtr native__this, IntPtr native_aPoints)
        {
            global::Osmdroid.Api.Polyline    __this  = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.Polyline> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.Api.IGeoPoint[] aPoints = (global::Osmdroid.Api.IGeoPoint[])JNIEnv.GetArray(native_aPoints, JniHandleOwnership.DoNotTransfer, typeof(global::Osmdroid.Api.IGeoPoint));
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Points(aPoints));

            if (aPoints != null)
            {
                JNIEnv.CopyArray(aPoints, native_aPoints);
            }
            return(__ret);
        }
コード例 #5
0
 static IntPtr n_Color_I(IntPtr jnienv, IntPtr native__this, int aColor)
 {
     global::Osmdroid.Api.Polyline __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.Polyline> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Color(aColor)));
 }
コード例 #6
0
 static IntPtr n_Width_F(IntPtr jnienv, IntPtr native__this, float aWidth)
 {
     global::Osmdroid.Api.Polyline __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.Polyline> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Width(aWidth)));
 }