static void OverrideIsActive(GLib.GType gtype, IsActiveNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("is_active")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private bool InternalIsActive() { IsActiveNativeDelegate unmanaged = class_abi.BaseOverride <IsActiveNativeDelegate>(this.LookupGType(), "is_active"); if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle); return(__result); }
private bool InternalIsActive() { IsActiveNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("is_active")); unmanaged = (IsActiveNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(IsActiveNativeDelegate)); } if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle); return(__result); }
static void OverrideIsActive (GLib.GType gtype, IsActiveNativeDelegate callback) { GVfsClass class_iface = GetClassStruct (gtype, false); class_iface.IsActive = callback; OverrideClassStruct (gtype, class_iface); }