static void OverrideLinkActivated(GLib.GType gtype, LinkActivatedNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("link_activated")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalLinkActivated() { LinkActivatedNativeDelegate unmanaged = class_abi.BaseOverride <LinkActivatedNativeDelegate>(this.LookupGType(), "link_activated"); if (unmanaged == null) { return; } unmanaged(this.Handle); }
private void InternalLinkActivated() { LinkActivatedNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("link_activated")); unmanaged = (LinkActivatedNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LinkActivatedNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle); }
static void OverrideLinkActivated (GLib.GType gtype, LinkActivatedNativeDelegate callback) { AtkHyperlinkClass class_iface = GetClassStruct (gtype, false); class_iface.LinkActivated = callback; OverrideClassStruct (gtype, class_iface); }