Initial support for text input/edit events

This commit is contained in:
Joshua Granick
2015-05-12 07:11:21 -07:00
parent b1a77a57b1
commit 2d3f51d2a4
19 changed files with 399 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
#ifndef LIME_UI_TEXT_EVENT_H
#define LIME_UI_TEXT_EVENT_H
#include <hx/CFFI.h>
namespace lime {
enum TextEventType {
TEXT_INPUT,
TEXT_EDIT
};
class TextEvent {
public:
static AutoGCRoot* callback;
static AutoGCRoot* eventObject;
TextEvent ();
static void Dispatch (TextEvent* event);
long length;
long start;
char text[32];
TextEventType type;
};
}
#endif