static void OverrideActionActivated(GLib.GType gtype, ActionActivatedNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("action_activated")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalActionActivated(int index_) { ActionActivatedNativeDelegate unmanaged = class_abi.BaseOverride <ActionActivatedNativeDelegate>(this.LookupGType(), "action_activated"); if (unmanaged == null) { return; } unmanaged(this.Handle, index_); }
private void InternalActionActivated(int index_) { ActionActivatedNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("action_activated")); unmanaged = (ActionActivatedNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ActionActivatedNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, index_); }