static void OverrideIsMutable(GLib.GType gtype, IsMutableNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("is_mutable")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private bool InternalIsMutable() { IsMutableNativeDelegate unmanaged = class_abi.BaseOverride <IsMutableNativeDelegate>(this.LookupGType(), "is_mutable"); if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle); return(__result); }
private bool InternalIsMutable() { IsMutableNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("is_mutable")); unmanaged = (IsMutableNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(IsMutableNativeDelegate)); } if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle); return(__result); }