static void OverrideGetItemAttributes(GLib.GType gtype, GetItemAttributesNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("get_item_attributes")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalGetItemAttributes(int item_index, System.IntPtr attributes) { GetItemAttributesNativeDelegate unmanaged = class_abi.BaseOverride <GetItemAttributesNativeDelegate>(this.LookupGType(), "get_item_attributes"); if (unmanaged == null) { return; } unmanaged(this.Handle, item_index, attributes); }
private void InternalGetItemAttributes(int item_index, System.IntPtr attributes) { GetItemAttributesNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("get_item_attributes")); unmanaged = (GetItemAttributesNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetItemAttributesNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, item_index, attributes); }