Files
lime/project/include/ui/DropEvent.h
Shahar Marcus ead4402d5f Implement onDropStart, onDropEnd for file dropping (#1583)
* native side

* Theoretically, things should work

* brurh forgot a letter

* another quick cpp fix

* everything works now

* onDropText isnt fully supported

* Fix typo.

* Remove accidental cSpell addition to settings.json

* Dispatch `onDropStart` and `onDropEnd` events in HTML5.

---------

Co-authored-by: player-03 <player3.14@gmail.com>
2024-06-04 13:46:24 -04:00

41 lines
445 B
C++

#ifndef LIME_UI_DROP_EVENT_H
#define LIME_UI_DROP_EVENT_H
#include <system/CFFI.h>
#include <system/ValuePointer.h>
namespace lime {
enum DropEventType {
DROP_FILE,
DROP_TEXT,
DROP_BEGIN,
DROP_COMPLETE
};
struct DropEvent {
hl_type* t;
vbyte* file;
DropEventType type;
static ValuePointer* callback;
static ValuePointer* eventObject;
DropEvent ();
static void Dispatch (DropEvent* event);
};
}
#endif