44 lines
488 B
C++
44 lines
488 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 TextEvent {
|
|
|
|
hl_type* t;
|
|
int id;
|
|
int length;
|
|
int start;
|
|
vbyte* text;
|
|
TextEventType type;
|
|
int windowID;
|
|
|
|
static ValuePointer* callback;
|
|
static ValuePointer* eventObject;
|
|
|
|
TextEvent ();
|
|
|
|
static void Dispatch (TextEvent* event);
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
#endif |