Chapter 17. Drag and Drop

Table of Contents

Gtk::Widget has several methods and signals which are prefixed with "drag_". These are used for Drag and Drop.

Sources and Destinations

Things are dragged from sources to be dropped on destinations. Each source and destination has information about the data formats that it can send or receive, provided by Gdk::ContentFormats. A drop destination will only accept a dragged item if they both share a compatible format. Appropriate signals will then be emitted, telling the signal handlers which format was used.

Gdk::ContentFormats objects contain information about available GTypes and mime types (media types).