1 \section{\class{wxTextDropTarget
}}\label{wxtextdroptarget
}
3 A predefined drop target for dealing with text data.
5 \wxheading{Derived from
}
7 \helpref{wxDropTarget
}{wxdroptarget
}
11 \helpref{Drag and drop overview
}{wxdndoverview
},
\helpref{wxDropSource
}{wxdropsource
},
12 \helpref{wxDropTarget
}{wxdroptarget
},
\helpref{wxFileDropTarget
}{wxfiledroptarget
}
14 \latexignore{\rtfignore{\wxheading{Members
}}}
16 \membersection{wxTextDropTarget::wxTextDropTarget
}\label{wxtextdroptargetwxtextdroptarget
}
18 \func{}{wxTextDropTarget
}{\void}
22 \membersection{wxTextDropTarget::GetFormatCount
}\label{wxtextdroptargetgetformatcount
}
24 \constfunc{virtual size
\_t}{GetFormatCount
}{\void}
26 See
\helpref{wxDropTarget::GetFormatCount
}{wxdroptargetgetformatcount
}. This function is implemented
27 appropriately for text.
29 \membersection{wxTextDropTarget::GetFormat
}\label{wxtextdroptargetgetformat
}
31 \constfunc{virtual wxDataFormat
}{GetFormat
}{\param{size
\_t }{n
}}
33 See
\helpref{wxDropTarget::GetFormat
}{wxdroptargetgetformat
}. This function is implemented
34 appropriately for text.
36 \membersection{wxTextDropTarget::OnDrop
}\label{wxtextdroptargetondrop
}
38 \func{virtual bool
}{OnDrop
}{\param{long
}{x
},
\param{long
}{y
},
\param{const void
}{*data
},
\param{size
\_t }{size
}}
40 See
\helpref{wxDropTarget::OnDrop
}{wxdroptargetondrop
}. This function is implemented
41 appropriately for text, and calls
\helpref{wxTextDropTarget::OnDropText
}{wxtextdroptargetondroptext
}.
43 \membersection{wxTextDropTarget::OnDropText
}\label{wxtextdroptargetondroptext
}
45 \func{virtual bool
}{OnDropText
}{\param{long
}{x
},
\param{long
}{y
},
\param{const char
}{*data
}}
47 Override this function to receive dropped text.
49 \wxheading{Parameters
}
51 \docparam{x
}{The x coordinate of the mouse.
}
53 \docparam{y
}{The y coordinate of the mouse.
}
55 \docparam{data
}{The data being dropped: a NULL-terminated string.
}
57 \wxheading{Return value
}
59 Return TRUE to accept the data, FALSE to veto the operation.