static void OverrideFocusChildSet(GLib.GType gtype, FocusChildSetNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("set_focus_child")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalFocusChildSet(Gtk.Widget child) { FocusChildSetNativeDelegate unmanaged = class_abi.BaseOverride <FocusChildSetNativeDelegate>(this.LookupGType(), "set_focus_child"); if (unmanaged == null) { return; } unmanaged(this.Handle, child == null ? IntPtr.Zero : child.Handle); }
private void InternalFocusChildSet(Gtk.Widget child) { FocusChildSetNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("set_focus_child")); unmanaged = (FocusChildSetNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(FocusChildSetNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, child == null ? IntPtr.Zero : child.Handle); }
static void OverrideFocusChildSet (GLib.GType gtype, FocusChildSetNativeDelegate callback) { gtksharp_container_override_set_focus_child (gtype.GetClassPtr (), callback); }
static extern void gtksharp_container_override_set_focus_child (IntPtr class_struct, FocusChildSetNativeDelegate cb);