Exemplo n.º 1
0
        private void InternalMoveCurrent(Gtk.MenuDirectionType direction)
        {
            MoveCurrentNativeDelegate unmanaged = class_abi.BaseOverride <MoveCurrentNativeDelegate>(this.LookupGType(), "move_current");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, (int)direction);
        }
Exemplo n.º 2
0
        private void InternalMoveCurrent(Gtk.MenuDirectionType direction)
        {
            MoveCurrentNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle, (int)direction);
        }
Exemplo n.º 3
0
 protected virtual void OnMoveCurrent(Gtk.MenuDirectionType direction)
 {
     InternalMoveCurrent(direction);
 }