vgwidget.h 518 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef VGWIDGET_H
  2. #define VGWIDGET_H
  3. #include <QWidget>
  4. #include <QPainter>
  5. #include <QPaintEngine>
  6. #include <QTime>
  7. #include <QTouchEvent>
  8. #include <QEvent>
  9. #include <VG/openvg.h>
  10. class VGWidget : public QWidget
  11. {
  12. Q_OBJECT
  13. public:
  14. VGWidget(QWidget *parent = 0);
  15. ~VGWidget();
  16. protected:
  17. bool event(QEvent *event);
  18. void paintEvent(QPaintEvent *event);
  19. private:
  20. QTime t0;
  21. QTime tt;
  22. int frames;
  23. QString message;
  24. bool game_prepared;
  25. };
  26. #endif