Foundation classes for a basic GUI implementing simple widgets and events

Dependents:   TouchScreenGUIDemo

Events/Event.h

Committer:
duncanFrance
Date:
2016-05-28
Revision:
18:d849f3ada858
Parent:
12:63db16fea709

File content as of revision 18:d849f3ada858:

#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