Esempio n. 1
0
 static void OverrideMoveHandle(GLib.GType gtype, MoveHandleNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("move_handle"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Esempio n. 2
0
        private bool InternalMoveHandle(Gtk.ScrollType scroll)
        {
            MoveHandleNativeDelegate unmanaged = class_abi.BaseOverride <MoveHandleNativeDelegate>(this.LookupGType(), "move_handle");

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

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

            return(__result);
        }
Esempio n. 3
0
        private bool InternalMoveHandle(Gtk.ScrollType scroll)
        {
            MoveHandleNativeDelegate unmanaged = null;

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

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

            return(__result);
        }
Esempio n. 4
0
		static void OverrideMoveHandle (GLib.GType gtype, MoveHandleNativeDelegate callback)
		{
			GtkPanedClass class_iface = GetClassStruct (gtype, false);
			class_iface.MoveHandle = callback;
			OverrideClassStruct (gtype, class_iface);
		}