Exemple #1
0
 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);
     }
 }
Exemple #2
0
        private void InternalLinkActivated()
        {
            LinkActivatedNativeDelegate unmanaged = class_abi.BaseOverride <LinkActivatedNativeDelegate>(this.LookupGType(), "link_activated");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
		static void OverrideLinkActivated (GLib.GType gtype, LinkActivatedNativeDelegate callback)
		{
			AtkHyperlinkClass class_iface = GetClassStruct (gtype, false);
			class_iface.LinkActivated = callback;
			OverrideClassStruct (gtype, class_iface);
		}