Files
lime/project/include/ui/WindowEvent.h
2015-04-24 02:18:30 -07:00

51 lines
619 B
C++

#ifndef LIME_UI_WINDOW_EVENT_H
#define LIME_UI_WINDOW_EVENT_H
#include <hx/CFFI.h>
namespace lime {
enum WindowEventType {
WINDOW_ACTIVATE,
WINDOW_CLOSE,
WINDOW_DEACTIVATE,
WINDOW_ENTER,
WINDOW_FOCUS_IN,
WINDOW_FOCUS_OUT,
WINDOW_LEAVE,
WINDOW_MINIMIZE,
WINDOW_MOVE,
WINDOW_RESIZE,
WINDOW_RESTORE,
};
class WindowEvent {
public:
static AutoGCRoot* callback;
static AutoGCRoot* eventObject;
WindowEvent ();
static void Dispatch (WindowEvent* event);
int height;
WindowEventType type;
int width;
int x;
int y;
};
}
#endif