1 \section{\class{wxFileDropTarget
}}\label{wxfiledroptarget
}
3 This is a
\helpref{drop target
}{wxdroptarget
} which accepts files (dragged
4 from File Manager or Explorer).
6 \wxheading{Derived from
}
8 \helpref{wxDropTarget
}{wxdroptarget
}
10 \wxheading{Include files
}
16 \helpref{wxCore
}{librarieslist
}
20 \helpref{Drag and drop overview
}{wxdndoverview
},
\helpref{wxDropSource
}{wxdropsource
},
21 \helpref{wxDropTarget
}{wxdroptarget
},
\helpref{wxTextDropTarget
}{wxtextdroptarget
}
23 \latexignore{\rtfignore{\wxheading{Members
}}}
25 \membersection{wxFileDropTarget::wxFileDropTarget
}\label{wxfiledroptargetwxfiledroptarget
}
27 \func{}{wxFileDropTarget
}{\void}
31 \membersection{wxFileDropTarget::OnDrop
}\label{wxfiledroptargetondrop
}
33 \func{virtual bool
}{OnDrop
}{\param{long
}{x
},
\param{long
}{y
},
\param{const void
}{*data
},
\param{size
\_t }{size
}}
35 See
\helpref{wxDropTarget::OnDrop
}{wxdroptargetondrop
}. This function is implemented
36 appropriately for files, and calls
\helpref{wxFileDropTarget::OnDropFiles
}{wxfiledroptargetondropfiles
}.
38 \membersection{wxFileDropTarget::OnDropFiles
}\label{wxfiledroptargetondropfiles
}
40 \func{virtual bool
}{OnDropFiles
}{\param{wxCoord
}{x
},
\param{wxCoord
}{y
},
\param{const wxArrayString\&
}{filenames
}}
42 Override this function to receive dropped files.
44 \wxheading{Parameters
}
46 \docparam{x
}{The x coordinate of the mouse.
}
48 \docparam{y
}{The y coordinate of the mouse.
}
50 \docparam{filenames
}{An array of filenames.
}
52 \wxheading{Return value
}
54 Return true to accept the data, false to veto the operation.
56 % VZ: this clarification is probably not needed any longer?
57 %\perlnote{In wxPerl there is just an array reference in place of {\tt nFiles}