Files
lime/project/include/ui/TextEvent.h
2018-06-11 13:10:17 -07:00

57 lines
659 B
C++

#ifndef LIME_UI_TEXT_EVENT_H
#define LIME_UI_TEXT_EVENT_H
#include <system/CFFI.h>
#include <system/ValuePointer.h>
#include <stdint.h>
namespace lime {
enum TextEventType {
TEXT_INPUT,
TEXT_EDIT
};
struct HL_TextEvent {
hl_type* t;
int id;
int length;
int start;
vbyte* text;
TextEventType type;
int windowID;
};
class TextEvent {
public:
static ValuePointer* callback;
static ValuePointer* eventObject;
TextEvent ();
static void Dispatch (TextEvent* event);
long length;
long start;
char text[32];
TextEventType type;
uint32_t windowID;
};
}
#endif