Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
		static void OverrideCycleHandleFocus (GLib.GType gtype, CycleHandleFocusNativeDelegate callback)
		{
			GtkPanedClass class_iface = GetClassStruct (gtype, false);
			class_iface.CycleHandleFocus = callback;
			OverrideClassStruct (gtype, class_iface);
		}