]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/txtdrptg.tex
Added periods
[wxWidgets.git] / docs / latex / wx / txtdrptg.tex
CommitLineData
dface61c
JS
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
954b8ae6
JS
9\wxheading{Include files}
10
11<wx/dnd.h>
12
a7af285d
VZ
13\wxheading{Library}
14
15\helpref{wxCore}{librarieslist}
16
dface61c
JS
17\wxheading{See also}
18
19\helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource},
20\helpref{wxDropTarget}{wxdroptarget}, \helpref{wxFileDropTarget}{wxfiledroptarget}
21
22\latexignore{\rtfignore{\wxheading{Members}}}
23
24\membersection{wxTextDropTarget::wxTextDropTarget}\label{wxtextdroptargetwxtextdroptarget}
25
26\func{}{wxTextDropTarget}{\void}
27
28Constructor.
29
dface61c
JS
30\membersection{wxTextDropTarget::OnDrop}\label{wxtextdroptargetondrop}
31
32\func{virtual bool}{OnDrop}{\param{long }{x}, \param{long }{y}, \param{const void }{*data}, \param{size\_t }{size}}
33
34See \helpref{wxDropTarget::OnDrop}{wxdroptargetondrop}. This function is implemented
35appropriately for text, and calls \helpref{wxTextDropTarget::OnDropText}{wxtextdroptargetondroptext}.
36
37\membersection{wxTextDropTarget::OnDropText}\label{wxtextdroptargetondroptext}
38
01a01d10 39\func{virtual bool}{OnDropText}{\param{wxCoord }{x}, \param{wxCoord }{y}, \param{const wxString\&}{ data}}
dface61c
JS
40
41Override this function to receive dropped text.
42
43\wxheading{Parameters}
44
45\docparam{x}{The x coordinate of the mouse.}
46
47\docparam{y}{The y coordinate of the mouse.}
48
01a01d10 49\docparam{data}{The data being dropped: a wxString.}
dface61c
JS
50
51\wxheading{Return value}
52
cc81d32f 53Return true to accept the data, false to veto the operation.
b82827dd 54