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
}
9 \wxheading{Include files
}
15 \helpref{Drag and drop overview
}{wxdndoverview
},
\helpref{wxDropSource
}{wxdropsource
},
16 \helpref{wxDropTarget
}{wxdroptarget
},
\helpref{wxTextDropTarget
}{wxtextdroptarget
}
18 \latexignore{\rtfignore{\wxheading{Members
}}}
20 \membersection{wxFileDropTarget::wxFileDropTarget
}\label{wxfiledroptargetwxfiledroptarget
}
22 \func{}{wxFileDropTarget
}{\void}
26 \membersection{wxFileDropTarget::GetFormatCount
}\label{wxfiledroptargetgetformatcount
}
28 \func{virtual size
\_t}{GetFormatCount
}{\void}
30 See
\helpref{wxDropTarget::GetFormatCount
}{wxdroptargetgetformatcount
}. This function is implemented
31 appropriately for files.
33 \membersection{wxFileDropTarget::GetFormat
}\label{wxfiledroptargetgetformat
}
35 \constfunc{virtual wxDataFormat
}{GetFormat
}{\param{size
\_t }{n
}}
37 See
\helpref{wxDropTarget::GetFormat
}{wxdroptargetgetformat
}. This function is implemented
38 appropriately for files.
40 \membersection{wxFileDropTarget::OnDrop
}\label{wxfiledroptargetondrop
}
42 \func{virtual bool
}{OnDrop
}{\param{long
}{x
},
\param{long
}{y
},
\param{const void
}{*data
},
\param{size
\_t }{size
}}
44 See
\helpref{wxDropTarget::OnDrop
}{wxdroptargetondrop
}. This function is implemented
45 appropriately for files, and calls
\helpref{wxFileDropTarget::OnDropFiles
}{wxfiledroptargetondropfiles
}.
47 \membersection{wxFileDropTarget::OnDropFiles
}\label{wxfiledroptargetondropfiles
}
49 \func{virtual bool
}{OnDropFiles
}{\param{long
}{x
},
\param{long
}{y
},
\param{size
\_t }{nFiles
},
\param{const char * const
}{files
[]}}
51 Override this function to receive dropped files.
53 \wxheading{Parameters
}
55 \docparam{x
}{The x coordinate of the mouse.
}
57 \docparam{y
}{The y coordinate of the mouse.
}
59 \docparam{nFiles
}{The number of files being dropped.
}
61 \docparam{files
}{An array of filenames.
}
63 \wxheading{Return value
}
65 Return TRUE to accept the data, FALSE to veto the operation.