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.

MyWindow.h

Committer:
embeddedartists
Date:
2015-07-14
Revision:
0:7f5765fcd048

File content as of revision 0:7f5765fcd048:


#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