static void OverrideCycleHandleFocus(GLib.GType gtype, CycleHandleFocusNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("cycle_handle_focus")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private bool InternalCycleHandleFocus(bool reverse) { CycleHandleFocusNativeDelegate unmanaged = class_abi.BaseOverride <CycleHandleFocusNativeDelegate>(this.LookupGType(), "cycle_handle_focus"); if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle, reverse); return(__result); }
private bool InternalCycleHandleFocus(bool reverse) { CycleHandleFocusNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("cycle_handle_focus")); unmanaged = (CycleHandleFocusNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(CycleHandleFocusNativeDelegate)); } if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle, reverse); return(__result); }
static void OverrideCycleHandleFocus (GLib.GType gtype, CycleHandleFocusNativeDelegate callback) { GtkPanedClass class_iface = GetClassStruct (gtype, false); class_iface.CycleHandleFocus = callback; OverrideClassStruct (gtype, class_iface); }