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{Drag and drop overview
}{wxdndoverview
},
\helpref{wxDropSource
}{wxdropsource
},
16 \helpref{wxDropTarget
}{wxdroptarget
},
\helpref{wxFileDropTarget
}{wxfiledroptarget
}
18 \latexignore{\rtfignore{\wxheading{Members
}}}
20 \membersection{wxTextDropTarget::wxTextDropTarget
}\label{wxtextdroptargetwxtextdroptarget
}
22 \func{}{wxTextDropTarget
}{\void}
26 \membersection{wxTextDropTarget::GetFormatCount
}\label{wxtextdroptargetgetformatcount
}
28 \constfunc{virtual size
\_t}{GetFormatCount
}{\void}
30 See
\helpref{wxDropTarget::GetFormatCount
}{wxdroptargetgetformatcount
}. This function is implemented
31 appropriately for text.
33 \membersection{wxTextDropTarget::GetFormat
}\label{wxtextdroptargetgetformat
}
35 \constfunc{virtual wxDataFormat
}{GetFormat
}{\param{size
\_t }{n
}}
37 See
\helpref{wxDropTarget::GetFormat
}{wxdroptargetgetformat
}. This function is implemented
38 appropriately for text.
40 \membersection{wxTextDropTarget::OnDrop
}\label{wxtextdroptargetondrop
}
42 \func{virtual bool
}{OnDrop
}{\param{long
}{x
},
\param{long
}{y
},
\param{const void
}{*data
},
\param{size
\_t }{size
}}
44 See
\helpref{wxDropTarget::OnDrop
}{wxdroptargetondrop
}. This function is implemented
45 appropriately for text, and calls
\helpref{wxTextDropTarget::OnDropText
}{wxtextdroptargetondroptext
}.
47 \membersection{wxTextDropTarget::OnDropText
}\label{wxtextdroptargetondroptext
}
49 \func{virtual bool
}{OnDropText
}{\param{long
}{x
},
\param{long
}{y
},
\param{const char
}{*data
}}
51 Override this function to receive dropped text.
53 \wxheading{Parameters
}
55 \docparam{x
}{The x coordinate of the mouse.
}
57 \docparam{y
}{The y coordinate of the mouse.
}
59 \docparam{data
}{The data being dropped: a NULL-terminated string.
}
61 \wxheading{Return value
}
63 Return TRUE to accept the data, FALSE to veto the operation.