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:
elh
Date:
2016-10-18
Revision:
20:ef07d42ea062
Parent:
12:63db16fea709

File content as of revision 20:ef07d42ea062:

#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