Beispiel #1
0
        static bool n_OnScroll_Lorg_osmdroid_events_ScrollEvent_(IntPtr jnienv, IntPtr native__this, IntPtr native_e)
        {
            global::Osmdroid.Events.IMapListener __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Events.IMapListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.Events.ScrollEvent  e      = global::Java.Lang.Object.GetObject <global::Osmdroid.Events.ScrollEvent> (native_e, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.OnScroll(e);

            return(__ret);
        }
Beispiel #2
0
        public bool OnScroll(global::Osmdroid.Events.ScrollEvent e)
        {
            if (id_onScroll_Lorg_osmdroid_events_ScrollEvent_ == IntPtr.Zero)
            {
                id_onScroll_Lorg_osmdroid_events_ScrollEvent_ = JNIEnv.GetMethodID(class_ref, "onScroll", "(Lorg/osmdroid/events/ScrollEvent;)Z");
            }
            bool __ret = JNIEnv.CallBooleanMethod(Handle, id_onScroll_Lorg_osmdroid_events_ScrollEvent_, new JValue(e));

            return(__ret);
        }
Beispiel #3
0
#pragma warning restore 0649

        public bool OnScroll(global::Osmdroid.Events.ScrollEvent e)
        {
            var __h = OnScrollHandler;

            if (__h == null)
            {
                return(false);
            }
            var __e = new ScrollEventArgs(true, e);

            __h(sender, __e);
            return(__e.Handled);
        }
Beispiel #4
0
        public virtual bool OnScroll(global::Osmdroid.Events.ScrollEvent e)
        {
            if (id_onScroll_Lorg_osmdroid_events_ScrollEvent_ == IntPtr.Zero)
            {
                id_onScroll_Lorg_osmdroid_events_ScrollEvent_ = JNIEnv.GetMethodID(class_ref, "onScroll", "(Lorg/osmdroid/events/ScrollEvent;)Z");
            }

            bool __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallBooleanMethod(Handle, id_onScroll_Lorg_osmdroid_events_ScrollEvent_, new JValue(e));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onScroll", "(Lorg/osmdroid/events/ScrollEvent;)Z"), new JValue(e));
            }
            return(__ret);
        }
Beispiel #5
0
 public ScrollEventArgs(bool handled, global::Osmdroid.Events.ScrollEvent e)
 {
     this.handled = handled;
     this.e       = e;
 }
Beispiel #6
0
 static int n_GetY(IntPtr jnienv, IntPtr native__this)
 {
     global::Osmdroid.Events.ScrollEvent __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Events.ScrollEvent> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.GetY());
 }
Beispiel #7
0
 static IntPtr n_GetSource(IntPtr jnienv, IntPtr native__this)
 {
     global::Osmdroid.Events.ScrollEvent __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Events.ScrollEvent> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Source));
 }