1\section{\class{wxTextDropTarget}}\label{wxtextdroptarget} 2 3A predefined drop target for dealing with text data. 4 5\wxheading{Derived from} 6 7\helpref{wxDropTarget}{wxdroptarget} 8 9\wxheading{Include files} 10 11<wx/dnd.h> 12 13\wxheading{See also} 14 15\helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource}, 16\helpref{wxDropTarget}{wxdroptarget}, \helpref{wxFileDropTarget}{wxfiledroptarget} 17 18\latexignore{\rtfignore{\wxheading{Members}}} 19 20\membersection{wxTextDropTarget::wxTextDropTarget}\label{wxtextdroptargetwxtextdroptarget} 21 22\func{}{wxTextDropTarget}{\void} 23 24Constructor. 25 26\membersection{wxTextDropTarget::OnDrop}\label{wxtextdroptargetondrop} 27 28\func{virtual bool}{OnDrop}{\param{long }{x}, \param{long }{y}, \param{const void }{*data}, \param{size\_t }{size}} 29 30See \helpref{wxDropTarget::OnDrop}{wxdroptargetondrop}. This function is implemented 31appropriately for text, and calls \helpref{wxTextDropTarget::OnDropText}{wxtextdroptargetondroptext}. 32 33\membersection{wxTextDropTarget::OnDropText}\label{wxtextdroptargetondroptext} 34 35\func{virtual bool}{OnDropText}{\param{wxCoord }{x}, \param{wxCoord }{y}, \param{const wxString\&}{ data}} 36 37Override this function to receive dropped text. 38 39\wxheading{Parameters} 40 41\docparam{x}{The x coordinate of the mouse.} 42 43\docparam{y}{The y coordinate of the mouse.} 44 45\docparam{data}{The data being dropped: a wxString.} 46 47\wxheading{Return value} 48 49Return true to accept the data, false to veto the operation. 50 51