File: ch15s04.html

package info (click to toggle)
gtkmm2.0 2.2.12-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 56,872 kB
  • ctags: 51,600
  • sloc: xml: 73,173; cpp: 20,565; sh: 8,608; perl: 2,702; makefile: 1,233
file content (3 lines) | stat: -rw-r--r-- 2,113 bytes parent folder | download | duplicates (2)
1
2
3
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>DragContext</title><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"><link rel="home" href="index.html" title="Programming with gtkmm2"><link rel="up" href="ch15.html" title="Chapter15.Drag and Drop"><link rel="previous" href="ch15s03.html" title="Signals"><link rel="next" href="ch15s05.html" title="Example"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">DragContext</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch15s03.html">Prev</a></td><th width="60%" align="center">Chapter15.Drag and Drop</th><td width="20%" align="right"><a accesskey="n" href="ch15s05.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2517079"></a>DragContext</h2></div></div><div></div></div><p>
The drag and drop signals provide a DragContext, which contains some information about the drag and drop operation and can be used to influence the process. For instance, you can discover the source widget, or  change the drag and drop icon, by using the <tt class="literal">set_icon()</tt> methods. More importantly, you should call the <tt class="literal">drag_finish()</tt> method from your <tt class="literal">drag_data_received</tt> signal handler to indicate whether the drop was successful.
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch15s03.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="ch15.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="ch15s05.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Signals</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">Example</td></tr></table></div></body></html>