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