]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/txtdrptg.tex
Split up wxStream doc files; added wxTCP... files; added wxBusyCursor;
[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
9\wxheading{See also}
10
11\helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource},
12\helpref{wxDropTarget}{wxdroptarget}, \helpref{wxFileDropTarget}{wxfiledroptarget}
13
14\latexignore{\rtfignore{\wxheading{Members}}}
15
16\membersection{wxTextDropTarget::wxTextDropTarget}\label{wxtextdroptargetwxtextdroptarget}
17
18\func{}{wxTextDropTarget}{\void}
19
20Constructor.
21
22\membersection{wxTextDropTarget::GetFormatCount}\label{wxtextdroptargetgetformatcount}
23
24\constfunc{virtual size\_t}{GetFormatCount}{\void}
25
26See \helpref{wxDropTarget::GetFormatCount}{wxdroptargetgetformatcount}. This function is implemented
27appropriately for text.
28
29\membersection{wxTextDropTarget::GetFormat}\label{wxtextdroptargetgetformat}
30
31\constfunc{virtual wxDataFormat}{GetFormat}{\param{size\_t }{n}}
32
33See \helpref{wxDropTarget::GetFormat}{wxdroptargetgetformat}. This function is implemented
34appropriately for text.
35
36\membersection{wxTextDropTarget::OnDrop}\label{wxtextdroptargetondrop}
37
38\func{virtual bool}{OnDrop}{\param{long }{x}, \param{long }{y}, \param{const void }{*data}, \param{size\_t }{size}}
39
40See \helpref{wxDropTarget::OnDrop}{wxdroptargetondrop}. This function is implemented
41appropriately for text, and calls \helpref{wxTextDropTarget::OnDropText}{wxtextdroptargetondroptext}.
42
43\membersection{wxTextDropTarget::OnDropText}\label{wxtextdroptargetondroptext}
44
45\func{virtual bool}{OnDropText}{\param{long }{x}, \param{long }{y}, \param{const char }{*data}}
46
47Override this function to receive dropped text.
48
49\wxheading{Parameters}
50
51\docparam{x}{The x coordinate of the mouse.}
52
53\docparam{y}{The y coordinate of the mouse.}
54
55\docparam{data}{The data being dropped: a NULL-terminated string.}
56
57\wxheading{Return value}
58
59Return TRUE to accept the data, FALSE to veto the operation.
b82827dd 60