static void OverrideToggleCursorRow(GLib.GType gtype, ToggleCursorRowNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("toggle_cursor_row")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalToggleCursorRow() { ToggleCursorRowNativeDelegate unmanaged = class_abi.BaseOverride <ToggleCursorRowNativeDelegate>(this.LookupGType(), "toggle_cursor_row"); if (unmanaged == null) { return; } unmanaged(this.Handle); }
private void InternalToggleCursorRow() { ToggleCursorRowNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("toggle_cursor_row")); unmanaged = (ToggleCursorRowNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ToggleCursorRowNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle); }
static void OverrideToggleCursorRow (GLib.GType gtype, ToggleCursorRowNativeDelegate callback) { GtkTreeViewClass class_iface = GetClassStruct (gtype, false); class_iface.ToggleCursorRow = callback; OverrideClassStruct (gtype, class_iface); }