1 \section{\class{wxTextDropTarget
}}\label{wxtextdroptarget
}
3 A predefined drop target for dealing with text data.
5 \wxheading{Derived from
}
7 \helpref{wxDropTarget
}{wxdroptarget
}
9 \wxheading{Include files
}
15 \helpref{wxCore
}{librarieslist
}
19 \helpref{Drag and drop overview
}{wxdndoverview
},
\helpref{wxDropSource
}{wxdropsource
},
20 \helpref{wxDropTarget
}{wxdroptarget
},
\helpref{wxFileDropTarget
}{wxfiledroptarget
}
22 \latexignore{\rtfignore{\wxheading{Members
}}}
24 \membersection{wxTextDropTarget::wxTextDropTarget
}\label{wxtextdroptargetwxtextdroptarget
}
26 \func{}{wxTextDropTarget
}{\void}
30 \membersection{wxTextDropTarget::OnDrop
}\label{wxtextdroptargetondrop
}
32 \func{virtual bool
}{OnDrop
}{\param{long
}{x
},
\param{long
}{y
},
\param{const void
}{*data
},
\param{size
\_t }{size
}}
34 See
\helpref{wxDropTarget::OnDrop
}{wxdroptargetondrop
}. This function is implemented
35 appropriately for text, and calls
\helpref{wxTextDropTarget::OnDropText
}{wxtextdroptargetondroptext
}.
37 \membersection{wxTextDropTarget::OnDropText
}\label{wxtextdroptargetondroptext
}
39 \func{virtual bool
}{OnDropText
}{\param{wxCoord
}{x
},
\param{wxCoord
}{y
},
\param{const wxString\&
}{ data
}}
41 Override this function to receive dropped text.
43 \wxheading{Parameters
}
45 \docparam{x
}{The x coordinate of the mouse.
}
47 \docparam{y
}{The y coordinate of the mouse.
}
49 \docparam{data
}{The data being dropped: a wxString.
}
51 \wxheading{Return value
}
53 Return true to accept the data, false to veto the operation.