static void OverrideInput(GLib.GType gtype, InputNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("input")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private int InternalInput(out double new_value) { InputNativeDelegate unmanaged = class_abi.BaseOverride <InputNativeDelegate>(this.LookupGType(), "input"); if (unmanaged == null) { throw new InvalidOperationException("No base method to invoke"); } int __result = unmanaged(this.Handle, out new_value); return(__result); }
private int InternalInput(out double new_value) { InputNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("input")); unmanaged = (InputNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(InputNativeDelegate)); } if (unmanaged == null) { throw new InvalidOperationException("No base method to invoke"); } int __result = unmanaged(this.Handle, out new_value); return(__result); }
static void OverrideInput (GLib.GType gtype, InputNativeDelegate callback) { GtkSpinButtonClass class_iface = GetClassStruct (gtype, false); class_iface.Input = callback; OverrideClassStruct (gtype, class_iface); }