Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
43cedbbb9d8ee522cf8277608071ccf5e554772c
[graphlib.git] / DrawingThread.h
1 #ifndef DRAWING_THREAD_H
2 #define DRAWING_THREAD_H
3
4 #include "DrawingArea.h"
5 #include <QThread>
6
7 class DrawingThread: public QThread {
8 public:
9     typedef int (*ThreadFunction)(DrawingArea &);
10
11     DrawingThread(DrawingArea &a, ThreadFunction f);
12
13     void run();
14
15 private:
16     DrawingArea &drawingArea;
17     ThreadFunction threadFunction;
18
19 };
20
21 #endif // !DRAWING_THREAD_H