Add WindowEvent
This commit is contained in:
38
project/include/ui/WindowEvent.h
Normal file
38
project/include/ui/WindowEvent.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#ifndef LIME_UI_WINDOW_EVENT_H
|
||||
#define LIME_UI_WINDOW_EVENT_H
|
||||
|
||||
|
||||
#include <hx/CFFI.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
enum WindowEventType {
|
||||
|
||||
WINDOW_ACTIVATE,
|
||||
WINDOW_DEACTIVATE
|
||||
|
||||
};
|
||||
|
||||
|
||||
class WindowEvent {
|
||||
|
||||
public:
|
||||
|
||||
static AutoGCRoot* callback;
|
||||
static AutoGCRoot* eventObject;
|
||||
|
||||
WindowEvent ();
|
||||
|
||||
static void Dispatch (WindowEvent* event);
|
||||
|
||||
WindowEventType type;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user