Foundation classes for a basic GUI implementing simple widgets and events. (Fork for custom changes.)

Fork of SimpleGUI by Duncan McIntyre

Events/Event.h

Committer:
duncanFrance
Date:
2016-05-08
Revision:
12:63db16fea709
Parent:
0:0a590815d51c

File content as of revision 12:63db16fea709:

#ifndef SIMPLEGUI_EVENT_H
#define SIMPLEGUI_EVENT_H

#include "mbed.h"
#include "EventListener.h"
#include "EventType.h"

typedef struct Event {
    
    EventListener *target;

    EventType type;

    // This should probably be some kind of union to cope with the different kinds of event we expect to handle
    // For now I'm going to explicitly assume events relate to something on-screen
    int screenX;
    int screenY;
    
} Event;

#endif