static void OverridePostActivate(GLib.GType gtype, PostActivateNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("post_activate")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalPostActivate(Gtk.Action action) { PostActivateNativeDelegate unmanaged = class_abi.BaseOverride <PostActivateNativeDelegate>(this.LookupGType(), "post_activate"); if (unmanaged == null) { return; } unmanaged(this.Handle, action == null ? IntPtr.Zero : action.Handle); }
private void InternalPostActivate(Gtk.Action action) { PostActivateNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("post_activate")); unmanaged = (PostActivateNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(PostActivateNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, action == null ? IntPtr.Zero : action.Handle); }
static void OverridePostActivate (GLib.GType gtype, PostActivateNativeDelegate callback) { GtkUIManagerClass class_iface = GetClassStruct (gtype, false); class_iface.PostActivate = callback; OverrideClassStruct (gtype, class_iface); }
static void OverridePostActivate (GLib.GType gtype, PostActivateNativeDelegate callback) { OverrideVirtualMethod (gtype, "post-activate", callback); }
static void OverridePostActivate(GLib.GType gtype, PostActivateNativeDelegate callback) { OverrideVirtualMethod(gtype, "post-activate", callback); }