Beispiel #1
0
        private void InternalMoveCursor(Gtk.MovementStep step, int count, bool extend_selection)
        {
            MoveCursorNativeDelegate unmanaged = class_abi.BaseOverride <MoveCursorNativeDelegate>(this.LookupGType(), "move_cursor");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, (int)step, count, extend_selection);
        }
Beispiel #2
0
        private bool InternalMoveCursor(Gtk.MovementStep step, int count)
        {
            MoveCursorNativeDelegate unmanaged = class_abi.BaseOverride <MoveCursorNativeDelegate>(this.LookupGType(), "move_cursor");

            if (unmanaged == null)
            {
                return(false);
            }

            bool __result = unmanaged(this.Handle, (int)step, count);

            return(__result);
        }
Beispiel #3
0
        private void InternalMoveCursor(Gtk.MovementStep step, int count)
        {
            MoveCursorNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("move_cursor"));
                unmanaged = (MoveCursorNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(MoveCursorNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, (int)step, count);
        }
Beispiel #4
0
 protected virtual void OnMoveCursor(Gtk.MovementStep step, int count)
 {
     InternalMoveCursor(step, count);
 }
Beispiel #5
0
 protected virtual void OnMoveCursor(Gtk.MovementStep step, int count, bool extend_selection)
 {
     InternalMoveCursor(step, count, extend_selection);
 }
Beispiel #6
0
 protected virtual bool OnMoveCursor(Gtk.MovementStep step, int count)
 {
     return(InternalMoveCursor(step, count));
 }