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{Drag and drop overview
}{wxdndoverview
},
\helpref{wxDropSource
}{wxdropsource
},
17 \helpref{wxDropTarget
}{wxdroptarget
},
\helpref{wxTextDropTarget
}{wxtextdroptarget
}
19 \latexignore{\rtfignore{\wxheading{Members
}}}
21 \membersection{wxFileDropTarget::wxFileDropTarget
}\label{wxfiledroptargetwxfiledroptarget
}
23 \func{}{wxFileDropTarget
}{\void}
27 \membersection{wxFileDropTarget::OnDrop
}\label{wxfiledroptargetondrop
}
29 \func{virtual bool
}{OnDrop
}{\param{long
}{x
},
\param{long
}{y
},
\param{const void
}{*data
},
\param{size
\_t }{size
}}
31 See
\helpref{wxDropTarget::OnDrop
}{wxdroptargetondrop
}. This function is implemented
32 appropriately for files, and calls
\helpref{wxFileDropTarget::OnDropFiles
}{wxfiledroptargetondropfiles
}.
34 \membersection{wxFileDropTarget::OnDropFiles
}\label{wxfiledroptargetondropfiles
}
36 \func{virtual bool
}{OnDropFiles
}{\param{wxCoord
}{x
},
\param{wxCoord
}{y
},
\param{const wxArrayString\&
}{filenames
}}
38 Override this function to receive dropped files.
40 \wxheading{Parameters
}
42 \docparam{x
}{The x coordinate of the mouse.
}
44 \docparam{y
}{The y coordinate of the mouse.
}
46 \docparam{filenames
}{An array of filenames.
}
48 \wxheading{Return value
}
50 Return true to accept the data, false to veto the operation.
52 % VZ: this clarification is probably not needed any longer?
53 %\perlnote{In wxPerl there is just an array reference in place of {\tt nFiles}