Пример #1
0
        public static bool Motion(Gdk.DragContext context, Gdk.Window dest_window, Gdk.DragProtocol protocol, int x_root, int y_root, Gdk.DragAction suggested_action, Gdk.DragAction possible_actions, uint time_)
        {
            bool raw_ret = gdk_drag_motion(context == null ? IntPtr.Zero : context.Handle, dest_window == null ? IntPtr.Zero : dest_window.Handle, (int)protocol, x_root, y_root, (int)suggested_action, (int)possible_actions, time_);
            bool ret     = raw_ret;

            return(ret);
        }
Пример #2
0
        public static void FindWindowForScreen(Gdk.DragContext context, Gdk.Window drag_window, Gdk.Screen screen, int x_root, int y_root, out Gdk.Window dest_window, out Gdk.DragProtocol protocol)
        {
            IntPtr native_dest_window;
            int    native_protocol;

            gdk_drag_find_window_for_screen(context == null ? IntPtr.Zero : context.Handle, drag_window == null ? IntPtr.Zero : drag_window.Handle, screen == null ? IntPtr.Zero : screen.Handle, x_root, y_root, out native_dest_window, out native_protocol);
            dest_window = GLib.Object.GetObject(native_dest_window) as Gdk.Window;
            protocol    = (Gdk.DragProtocol)native_protocol;
        }
Пример #3
0
 public static void DestSetProxy(Gtk.Widget widget, Gdk.Window proxy_window, Gdk.DragProtocol protocol, bool use_coordinates)
 {
     gtk_drag_dest_set_proxy(widget == null ? IntPtr.Zero : widget.Handle, proxy_window == null ? IntPtr.Zero : proxy_window.Handle, (int)protocol, use_coordinates);
 }