* 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>
41 lines
445 B
C++
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 |