Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 protected virtual void OnMoveCursor(Gtk.MovementStep step, int count)
 {
     InternalMoveCursor(step, count);
 }
Exemplo n.º 5
0
 protected virtual void OnMoveCursor(Gtk.MovementStep step, int count, bool extend_selection)
 {
     InternalMoveCursor(step, count, extend_selection);
 }
Exemplo n.º 6
0
 protected virtual bool OnMoveCursor(Gtk.MovementStep step, int count)
 {
     return(InternalMoveCursor(step, count));
 }