Example #1
0
 static void OverrideGetEndIndex(GLib.GType gtype, GetEndIndexNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("get_end_index"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Example #2
0
        private int InternalGetEndIndex()
        {
            GetEndIndexNativeDelegate unmanaged = class_abi.BaseOverride <GetEndIndexNativeDelegate>(this.LookupGType(), "get_end_index");

            if (unmanaged == null)
            {
                return(0);
            }

            int __result = unmanaged(this.Handle);

            return(__result);
        }
Example #3
0
        private int InternalGetEndIndex()
        {
            GetEndIndexNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("get_end_index"));
                unmanaged = (GetEndIndexNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetEndIndexNativeDelegate));
            }
            if (unmanaged == null)
            {
                return(0);
            }

            int __result = unmanaged(this.Handle);

            return(__result);
        }
Example #4
0
		static void OverrideGetEndIndex (GLib.GType gtype, GetEndIndexNativeDelegate callback)
		{
			AtkHyperlinkClass class_iface = GetClassStruct (gtype, false);
			class_iface.GetEndIndex = callback;
			OverrideClassStruct (gtype, class_iface);
		}