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); } }
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); }
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); }
static void OverrideGetEndIndex (GLib.GType gtype, GetEndIndexNativeDelegate callback) { AtkHyperlinkClass class_iface = GetClassStruct (gtype, false); class_iface.GetEndIndex = callback; OverrideClassStruct (gtype, class_iface); }