wxWidgets/docs/latex/wx/fildrptg.tex

53 lines
1.5 KiB
TeX
Raw Normal View History

\section{\class{wxFileDropTarget}}\label{wxfiledroptarget}
A drop target which accepts files (dragged from File Manager or Explorer).
\wxheading{Derived from}
\helpref{wxDropTarget}{wxdroptarget}
\wxheading{Include files}
<wx/dnd.h>
\wxheading{See also}
\helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource},
\helpref{wxDropTarget}{wxdroptarget}, \helpref{wxTextDropTarget}{wxtextdroptarget}
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxFileDropTarget::wxFileDropTarget}\label{wxfiledroptargetwxfiledroptarget}
\func{}{wxFileDropTarget}{\void}
Constructor.
\membersection{wxFileDropTarget::OnDrop}\label{wxfiledroptargetondrop}
\func{virtual bool}{OnDrop}{\param{long }{x}, \param{long }{y}, \param{const void }{*data}, \param{size\_t }{size}}
See \helpref{wxDropTarget::OnDrop}{wxdroptargetondrop}. This function is implemented
appropriately for files, and calls \helpref{wxFileDropTarget::OnDropFiles}{wxfiledroptargetondropfiles}.
\membersection{wxFileDropTarget::OnDropFiles}\label{wxfiledroptargetondropfiles}
\func{virtual bool}{OnDropFiles}{\param{long }{x}, \param{long }{y}, \param{size\_t }{nFiles}, \param{const char * const}{files[]}}
Override this function to receive dropped files.
\wxheading{Parameters}
\docparam{x}{The x coordinate of the mouse.}
\docparam{y}{The y coordinate of the mouse.}
\docparam{nFiles}{The number of files being dropped.}
\docparam{files}{An array of filenames.}
\wxheading{Return value}
Return TRUE to accept the data, FALSE to veto the operation.