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

@@ -102,6 +102,7 @@ class Window {
Delegate<UIEvent*> on_painting;
Delegate<UIEvent*> on_paint;
Delegate<UIEvent*> on_painted;
Delegate<FileDropEvent*> on_file_drop;
Delegate<KeyEvent*> on_key_down;
Delegate<KeyEvent*> on_key_up;
@@ -128,6 +129,7 @@ class Window {
virtual void OnResize(UIEvent* e);
virtual void OnLayout(UIEvent* e);
virtual void OnPaint(UIEvent* e);
virtual void OnFileDrop(FileDropEvent* e);
virtual void OnVisible(UIEvent* e);
virtual void OnHidden(UIEvent* e);