mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-20 10:20:09 +00:00
a381648faa
* gtk/gtkaccelmap.c: Typo fixes. (#65607) * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window): Fix docs. (#65505) * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document. * gtk/tmpl/gtkwindow.sgml: Document gtk_window_position. * gdk/tmpl/dnd.sgml: Document GdkDragProtocol and GdkDragContext. * gdk/tmpl/events.sgml: Document gdk_setting_get. * gdk/tmpl/fonts.sgml: Document gdk_font_full_name_get and gdk_font_full_name_free. * gdk/tmpl/windows.sgml: Document gdk_window_register_dnd.
200 lines
3.3 KiB
Plaintext
200 lines
3.3 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
Drag and Drop
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
functions for controlling drag and drop handling.
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
These functions provide a low level interface for drag and drop.
|
|
The X backend of GDK supports both the Xdnd and Motif drag and drop protocols
|
|
transparently, the Win32 backend supports the WM_DROPFILES protocol.
|
|
</para>
|
|
<para>
|
|
GTK+ provides a higher level abstraction based on top of these functions,
|
|
and so they are not normally needed in GTK+ applications.
|
|
See the <link linkend="gtk-Drag-and-Drop">Drag and Drop</link> section of
|
|
the GTK+ documentation for more information.
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### FUNCTION gdk_drag_get_selection ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@context:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_drag_abort ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@context:
|
|
@time:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_drop_reply ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@context:
|
|
@ok:
|
|
@time:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_drag_context_new ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_drag_drop ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@context:
|
|
@time:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_drag_find_window ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@context:
|
|
@drag_window:
|
|
@x_root:
|
|
@y_root:
|
|
@dest_window:
|
|
@protocol:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_drag_context_ref ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@context:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_drag_begin ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@window:
|
|
@targets:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_drag_motion ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@context:
|
|
@dest_window:
|
|
@protocol:
|
|
@x_root:
|
|
@y_root:
|
|
@suggested_action:
|
|
@possible_actions:
|
|
@time:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_drop_finish ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@context:
|
|
@success:
|
|
@time:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_drag_get_protocol ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@xid:
|
|
@protocol:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### ENUM GdkDragProtocol ##### -->
|
|
<para>
|
|
Is used in #GdkDragContext to indicate the protocol according to
|
|
which DND is done.
|
|
</para>
|
|
|
|
@GDK_DRAG_PROTO_MOTIF: The Motif DND protocol.
|
|
@GDK_DRAG_PROTO_XDND: The Xdnd protocol.
|
|
@GDK_DRAG_PROTO_ROOTWIN: An extension to the Xdnd protocol for
|
|
unclaimed root window drops.
|
|
@GDK_DRAG_PROTO_NONE: no protocol.
|
|
@GDK_DRAG_PROTO_WIN32_DROPFILES: The simple WM_DROPFILES protocol.
|
|
@GDK_DRAG_PROTO_OLE2: The complex OLE2 DND protocol (not implemented).
|
|
@GDK_DRAG_PROTO_LOCAL: Intra-application DND.
|
|
|
|
<!-- ##### FUNCTION gdk_drag_context_unref ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@context:
|
|
|
|
|
|
<!-- ##### STRUCT GdkDragContext ##### -->
|
|
<para>
|
|
A <structname>GdkDragContext</structname> holds information about a
|
|
drag in progress. It is used on both source and destination sides.
|
|
</para>
|
|
|
|
@parent_instance:
|
|
@protocol: the DND protocol which governs this drag.
|
|
@is_source: %TRUE if the context is used on the source side.
|
|
@source_window: the source of this drag.
|
|
@dest_window: the destination window of this drag.
|
|
@targets: a list of targets accepted on the destination.
|
|
@actions: a bitmask of all possible actions.
|
|
@suggested_action: the suggested action.
|
|
@action:
|
|
@start_time: a timestamp recording the start time of this drag.
|
|
|
|
|
|
<!-- ##### ENUM GdkDragAction ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@GDK_ACTION_DEFAULT:
|
|
@GDK_ACTION_COPY:
|
|
@GDK_ACTION_MOVE:
|
|
@GDK_ACTION_LINK:
|
|
@GDK_ACTION_PRIVATE:
|
|
@GDK_ACTION_ASK:
|
|
|
|
<!-- ##### FUNCTION gdk_drag_status ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@context:
|
|
@action:
|
|
@time:
|
|
|
|
|