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
This program requires the emWin library. Instructions and more information.
Diff: MyWindow.h
- Revision:
- 0:7f5765fcd048
diff -r 000000000000 -r 7f5765fcd048 MyWindow.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MyWindow.h Tue Jul 14 11:34:15 2015 +0000 @@ -0,0 +1,37 @@ + +#ifndef MYWINDOW_H +#define MYWINDOW_H + +#include "EwWindow.h" +#include "EwButton.h" +#include "EwCheckBox.h" +#include "EwDropDown.h" + +class MyWindow : public EwWindow { +public: + + MyWindow(EwWindow* parent); + + virtual bool paintEvent(); + virtual bool touchEvent(int x, int y, EwTouchState_t state); + + virtual bool resizedEvent() {printf("MyWindow resized\n"); return true;} + + +private: + + int _clickCnt; + bool _pressed; + int _pressX; + int _pressY; + EwButton _changeBtn; + EwCheckBox _checkBox; + EwDropDown _dropDownLst; + + + void clickListener(EwWindow* w); + void checkedListener(EwWindow* w); +}; + +#endif +