1 \section{\class{wxFileDropTarget
}}\label{wxfiledroptarget
}
3 A drop target which accepts files (dragged from File Manager or Explorer).
5 \wxheading{Derived from
}
7 \helpref{wxDropTarget
}{wxdroptarget
}
11 \helpref{Drag and drop overview
}{wxdndoverview
},
\helpref{wxDropSource
}{wxdropsource
},
12 \helpref{wxDropTarget
}{wxdroptarget
},
\helpref{wxTextDropTarget
}{wxtextdroptarget
}
14 \latexignore{\rtfignore{\wxheading{Members
}}}
16 \membersection{wxFileDropTarget::wxFileDropTarget
}\label{wxfiledroptargetwxfiledroptarget
}
18 \func{}{wxFileDropTarget
}{\void}
22 \membersection{wxFileDropTarget::GetFormatCount
}\label{wxfiledroptargetgetformatcount
}
24 \func{virtual size
\_t}{GetFormatCount
}{\void}
26 See
\helpref{wxDropTarget::GetFormatCount
}{wxdroptargetgetformatcount
}. This function is implemented
27 appropriately for files.
29 \membersection{wxFileDropTarget::GetFormat
}\label{wxfiledroptargetgetformat
}
31 \constfunc{virtual wxDataFormat
}{GetFormat
}{\param{size
\_t }{n
}}
33 See
\helpref{wxDropTarget::GetFormat
}{wxdroptargetgetformat
}. This function is implemented
34 appropriately for files.
36 \membersection{wxFileDropTarget::OnDrop
}\label{wxfiledroptargetondrop
}
38 \func{virtual bool
}{OnDrop
}{\param{long
}{x
},
\param{long
}{y
},
\param{const void
}{*data
},
\param{size
\_t }{size
}}
40 See
\helpref{wxDropTarget::OnDrop
}{wxdroptargetondrop
}. This function is implemented
41 appropriately for files, and calls
\helpref{wxFileDropTarget::OnDropFiles
}{wxfiledroptargetondropfiles
}.
43 \membersection{wxFileDropTarget::OnDropFiles
}\label{wxfiledroptargetondropfiles
}
45 \func{virtual bool
}{OnDropFiles
}{\param{long
}{x
},
\param{long
}{y
},
\param{size
\_t }{nFiles
},
\param{const char * const
}{files
[]}}
47 Override this function to receive dropped files.
49 \wxheading{Parameters
}
51 \docparam{x
}{The x coordinate of the mouse.
}
53 \docparam{y
}{The y coordinate of the mouse.
}
55 \docparam{nFiles
}{The number of files being dropped.
}
57 \docparam{files
}{An array of filenames.
}
59 \wxheading{Return value
}
61 Return TRUE to accept the data, FALSE to veto the operation.