X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dface61ccba162c922b25d18aca2ebc4e6f03312..85136e3bf5dadf921652519e71da5db351fb3194:/docs/latex/wx/fildrptg.tex diff --git a/docs/latex/wx/fildrptg.tex b/docs/latex/wx/fildrptg.tex index 5e413f4f94..3d866c1947 100644 --- a/docs/latex/wx/fildrptg.tex +++ b/docs/latex/wx/fildrptg.tex @@ -1,11 +1,20 @@ \section{\class{wxFileDropTarget}}\label{wxfiledroptarget} - A drop target which accepts files (dragged from File Manager or Explorer). +This is a \helpref{drop target}{wxdroptarget} which accepts files (dragged +from File Manager or Explorer). \wxheading{Derived from} \helpref{wxDropTarget}{wxdroptarget} +\wxheading{Include files} + + + +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \wxheading{See also} \helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource}, @@ -19,20 +28,6 @@ Constructor. -\membersection{wxFileDropTarget::GetFormatCount}\label{wxfiledroptargetgetformatcount} - -\func{virtual size\_t}{GetFormatCount}{\void} - -See \helpref{wxDropTarget::GetFormatCount}{wxdroptargetgetformatcount}. This function is implemented -appropriately for files. - -\membersection{wxFileDropTarget::GetFormat}\label{wxfiledroptargetgetformat} - -\constfunc{virtual wxDataFormat}{GetFormat}{\param{size\_t }{n}} - -See \helpref{wxDropTarget::GetFormat}{wxdroptargetgetformat}. This function is implemented -appropriately for files. - \membersection{wxFileDropTarget::OnDrop}\label{wxfiledroptargetondrop} \func{virtual bool}{OnDrop}{\param{long }{x}, \param{long }{y}, \param{const void }{*data}, \param{size\_t }{size}} @@ -42,7 +37,7 @@ appropriately for files, and calls \helpref{wxFileDropTarget::OnDropFiles}{wxfil \membersection{wxFileDropTarget::OnDropFiles}\label{wxfiledroptargetondropfiles} -\func{virtual bool}{OnDropFiles}{\param{long }{x}, \param{long }{y}, \param{size\_t }{nFiles}, \param{const char * const}{files[]}} +\func{virtual bool}{OnDropFiles}{\param{wxCoord }{x}, \param{wxCoord }{y}, \param{const wxArrayString\& }{filenames}} Override this function to receive dropped files. @@ -52,11 +47,13 @@ Override this function to receive dropped files. \docparam{y}{The y coordinate of the mouse.} -\docparam{nFiles}{The number of files being dropped.} - -\docparam{files}{An array of filenames.} +\docparam{filenames}{An array of filenames.} \wxheading{Return value} -Return TRUE to accept the data, FALSE to veto the operation. +Return true to accept the data, false to veto the operation. + +% VZ: this clarification is probably not needed any longer? +%\perlnote{In wxPerl there is just an array reference in place of {\tt nFiles} +%and {\tt files}.}