Add file drop functionality

Adds the ability to drag and drop files from windows in order to attempt
to execute them
This commit is contained in:
Leighton Hancock
2016-11-14 16:50:58 +13:00
parent f5168c5768
commit 524ba0c88c
7 changed files with 51 additions and 0 deletions

View File

@@ -213,6 +213,11 @@ void Window::OnPaint(UIEvent* e) {
}
}
void Window::OnFileDrop(FileDropEvent* e) {
on_file_drop(e);
ForEachListener([e](auto listener) { listener->OnFileDrop(e); });
}
void Window::OnVisible(UIEvent* e) {
ForEachListener([e](auto listener) { listener->OnVisible(e); });
}