![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Example that shows how to use the ewgui wrapper classes in combination with Segger's emwin library.
Dependencies: EALib ewgui mbed
Diff: MyWindow.h
- Revision:
- 0:6b81fd4666bb
diff -r 000000000000 -r 6b81fd4666bb MyWindow.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MyWindow.h Mon Dec 16 07:09:17 2013 +0000 @@ -0,0 +1,36 @@ + +#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