Example that shows how to use the ewgui wrapper classes in combination with Segger's emwin library.

Dependencies:   EALib ewgui mbed

Committer:
embeddedartists
Date:
Mon Apr 14 08:39:47 2014 +0000
Revision:
2:789b4879e22f
Parent:
0:6b81fd4666bb
Updated ewgui to latest version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
embeddedartists 0:6b81fd4666bb 1
embeddedartists 0:6b81fd4666bb 2 #ifndef EWGUIIMPL_H
embeddedartists 0:6b81fd4666bb 3 #define EWGUIIMPL_H
embeddedartists 0:6b81fd4666bb 4
embeddedartists 0:6b81fd4666bb 5 #include "mbed.h"
embeddedartists 0:6b81fd4666bb 6 #include "EwGui.h"
embeddedartists 0:6b81fd4666bb 7 #include "EwPainter.h"
embeddedartists 0:6b81fd4666bb 8 #include "TouchPanel.h"
embeddedartists 0:6b81fd4666bb 9
embeddedartists 0:6b81fd4666bb 10 class EwGuiImpl : public EwGui {
embeddedartists 0:6b81fd4666bb 11 public:
embeddedartists 0:6b81fd4666bb 12
embeddedartists 0:6b81fd4666bb 13
embeddedartists 0:6b81fd4666bb 14 EwGuiImpl();
embeddedartists 0:6b81fd4666bb 15
embeddedartists 0:6b81fd4666bb 16 virtual void* getMemoryBlockAddress();
embeddedartists 0:6b81fd4666bb 17 virtual uint32_t getMemoryBlockSize();
embeddedartists 0:6b81fd4666bb 18
embeddedartists 0:6b81fd4666bb 19 virtual uint32_t getDisplayWidth();
embeddedartists 0:6b81fd4666bb 20 virtual uint32_t getDisplayHeight();
embeddedartists 0:6b81fd4666bb 21
embeddedartists 0:6b81fd4666bb 22 virtual void* getFrameBufferAddress();
embeddedartists 0:6b81fd4666bb 23
embeddedartists 0:6b81fd4666bb 24 virtual void getTouchValues(int32_t* x, int32_t* y, int32_t* z);
embeddedartists 0:6b81fd4666bb 25
embeddedartists 0:6b81fd4666bb 26 void calibrate();
embeddedartists 0:6b81fd4666bb 27
embeddedartists 0:6b81fd4666bb 28
embeddedartists 0:6b81fd4666bb 29 private:
embeddedartists 0:6b81fd4666bb 30
embeddedartists 0:6b81fd4666bb 31 uint32_t _width;
embeddedartists 0:6b81fd4666bb 32 uint32_t _height;
embeddedartists 0:6b81fd4666bb 33 uint32_t _fb;
embeddedartists 0:6b81fd4666bb 34 uint32_t _mem;
embeddedartists 0:6b81fd4666bb 35 uint32_t _memSz;
embeddedartists 0:6b81fd4666bb 36 TouchPanel* _touch;
embeddedartists 0:6b81fd4666bb 37
embeddedartists 0:6b81fd4666bb 38 void drawCalibPoint(EwPainter &painter, int32_t x, int32_t y);
embeddedartists 0:6b81fd4666bb 39 };
embeddedartists 0:6b81fd4666bb 40
embeddedartists 0:6b81fd4666bb 41 #endif