1
0
Fork 0
spectre/include/Spectre/System/SystemEvent.h
2016-01-10 09:26:43 +01:00

38 lines
No EOL
400 B
C++

#ifndef SYSTEM_EVENT_H
#define SYSTEM_EVENT_H
class Display;
struct SysEvent
{
public :
enum Type {
None,
Quit,
Size,
};
Type type;
struct Size
{
Display *display;
int width;
int height;
};
union {
struct Size size;
};
SysEvent(Type type = None);
// Helper methods
static SysEvent sizeEvent(Display *display, int width, int height);
};
#endif /* SYSTEM_EVENT_H */