el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Event.h Source File

Event.h

00001 #ifndef SIMPLEGUI_EVENT_H
00002 #define SIMPLEGUI_EVENT_H
00003 
00004 #include "mbed.h"
00005 #include "EventListener.h"
00006 #include "EventType.h"
00007 
00008 typedef struct Event {
00009     
00010     EventListener *target;
00011 
00012     EventType type;
00013 
00014     // This should probably be some kind of union to cope with the different kinds of event we expect to handle
00015     // For now I'm going to explicitly assume events relate to something on-screen
00016     int screenX;
00017     int screenY;
00018     
00019 } Event;
00020 
00021 #endif