static void OverrideSelectionDone(GLib.GType gtype, SelectionDoneNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("selection_done")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalSelectionDone() { SelectionDoneNativeDelegate unmanaged = class_abi.BaseOverride <SelectionDoneNativeDelegate>(this.LookupGType(), "selection_done"); if (unmanaged == null) { return; } unmanaged(this.Handle); }
private void InternalSelectionDone() { SelectionDoneNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("selection_done")); unmanaged = (SelectionDoneNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SelectionDoneNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle); }
static void OverrideSelectionDone (GLib.GType gtype, SelectionDoneNativeDelegate callback) { gtksharp_menushell_override_selection_done (gtype.GetClassPtr (), callback); }
static extern void gtksharp_menushell_override_selection_done (IntPtr class_struct, SelectionDoneNativeDelegate cb);