Graphical demo for the LPC4088 Experiment Base Board with one of the Display Expansion Kits. This program displays how to use the emWin library from Segger.

Dependencies:   EALib ewgui mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MyWindow.h Source File

MyWindow.h

00001 
00002 #ifndef MYWINDOW_H
00003 #define MYWINDOW_H
00004 
00005 #include "EwWindow.h"
00006 #include "EwButton.h"
00007 #include "EwCheckBox.h"
00008 #include "EwDropDown.h"
00009 
00010 class MyWindow : public EwWindow {
00011 public:
00012 
00013     MyWindow(EwWindow* parent);
00014 
00015     virtual bool paintEvent();
00016     virtual bool touchEvent(int x, int y, EwTouchState_t state);
00017 
00018     virtual bool resizedEvent() {printf("MyWindow resized\n"); return true;}
00019 
00020 
00021 private:
00022 
00023     int _clickCnt;
00024     bool _pressed;
00025     int _pressX;
00026     int _pressY;
00027     EwButton _changeBtn;
00028     EwCheckBox _checkBox;
00029     EwDropDown _dropDownLst;
00030 
00031 
00032     void clickListener(EwWindow* w);
00033     void checkedListener(EwWindow* w);
00034 };
00035 
00036 #endif
00037