diff options
author | Elliot Lee <sopwith@src.gnome.org> | 1998-02-26 21:28:00 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 1998-02-26 21:28:00 +0000 |
commit | a597dd94732403144c05c75a77383a3f541290f3 (patch) | |
tree | 33f825076620ae3a5cb9e7a37f86159d0ef94500 /gdk/gdkprivate.h | |
parent | 95efae09a7b85d121d47c26fd5d0670eb5e50fe9 (diff) | |
download | gdk-pixbuf-a597dd94732403144c05c75a77383a3f541290f3.tar.gz |
D&D now lets you use shaped windows for drags. As usual, see testgtk.c... Now finish GnomeMC, miguel :)
Diffstat (limited to 'gdk/gdkprivate.h')
-rw-r--r-- | gdk/gdkprivate.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/gdk/gdkprivate.h b/gdk/gdkprivate.h index 228e0eed8..967c87406 100644 --- a/gdk/gdkprivate.h +++ b/gdk/gdkprivate.h @@ -141,14 +141,23 @@ struct _GdkCursorPrivate Display *xdisplay; }; +struct _GdkDndCursorInfo { + Cursor gdk_cursor_dragdefault, gdk_cursor_dragok; + GdkWindow *drag_pm_default, *drag_pm_ok; + GdkPoint default_hotspot, ok_hotspot; +}; +typedef struct _GdkDndCursorInfo GdkDndCursorInfo; + struct _GdkDndGlobals { GdkAtom gdk_XdeEnter, gdk_XdeLeave, gdk_XdeRequest; GdkAtom gdk_XdeDataAvailable, gdk_XdeDataShow, gdk_XdeCancel; GdkAtom gdk_XdeTypelist; - Cursor gdk_cursor_dragdefault, gdk_cursor_dragok; + + GdkDndCursorInfo *c; GdkWindow **drag_startwindows; guint drag_numwindows; - guint8 drag_really; + gboolean drag_really, drag_perhaps, dnd_grabbed; + Window dnd_drag_target; GdkPoint drag_dropcoords; }; typedef struct _GdkDndGlobals GdkDndGlobals; @@ -202,6 +211,16 @@ void gdk_xid_table_insert (XID *xid, void gdk_xid_table_remove (XID xid); gpointer gdk_xid_table_lookup (XID xid); +/* If you pass x = y = -1, it queries the pointer + to find out where it currently is. + If you pass x = y = -2, it does anything necessary + to know that the drag is ending. +*/ +void gdk_dnd_display_drag_cursor(gint x, + gint y, + gboolean drag_ok, + gboolean change_made); + extern gint gdk_debug_level; extern gint gdk_show_events; |