Exemplo n.º 1
0
 static void OverrideMoveFocusOut(GLib.GType gtype, MoveFocusOutNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("move_focus_out"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Exemplo n.º 2
0
        private void InternalMoveFocusOut(Gtk.DirectionType direction)
        {
            MoveFocusOutNativeDelegate unmanaged = class_abi.BaseOverride <MoveFocusOutNativeDelegate>(this.LookupGType(), "move_focus_out");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, (int)direction);
        }
Exemplo n.º 3
0
        private void InternalMoveFocusOut(Gtk.DirectionType direction)
        {
            MoveFocusOutNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("move_focus_out"));
                unmanaged = (MoveFocusOutNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(MoveFocusOutNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, (int)direction);
        }
Exemplo n.º 4
0
		static void OverrideMoveFocusOut (GLib.GType gtype, MoveFocusOutNativeDelegate callback)
		{
			GtkScrolledWindowClass class_iface = GetClassStruct (gtype, false);
			class_iface.MoveFocusOut = callback;
			OverrideClassStruct (gtype, class_iface);
		}