Beispiel #1
0
 static void OverrideCancelPosition(GLib.GType gtype, CancelPositionNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("cancel_position"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Beispiel #2
0
        private bool InternalCancelPosition()
        {
            CancelPositionNativeDelegate unmanaged = class_abi.BaseOverride <CancelPositionNativeDelegate>(this.LookupGType(), "cancel_position");

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

            bool __result = unmanaged(this.Handle);

            return(__result);
        }
Beispiel #3
0
        private bool InternalCancelPosition()
        {
            CancelPositionNativeDelegate unmanaged = null;

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

            bool __result = unmanaged(this.Handle);

            return(__result);
        }
Beispiel #4
0
		static void OverrideCancelPosition (GLib.GType gtype, CancelPositionNativeDelegate callback)
		{
			GtkPanedClass class_iface = GetClassStruct (gtype, false);
			class_iface.CancelPosition = callback;
			OverrideClassStruct (gtype, class_iface);
		}