headers/bsd: Add sys/queue.h.
[haiku.git] / src / tests / servers / app / newerClipping / ClientLooper.h
blob7e302830da69fae4d47e36cebbc71f1abc351068
2 #ifndef CLIENT_LOOPER_H
3 #define CLIENT_LOOPER_H
5 #include <Looper.h>
7 class BMessageRunner;
8 class WindowLayer;
10 enum {
11 MSG_UPDATE = 'updt',
12 MSG_VIEWS_ADDED = 'vwad',
13 MSG_VIEWS_REMOVED = 'vwrm',
15 MSG_WINDOW_HIDDEN = 'whdn',
17 MSG_TICK = 'tick',
20 struct point {
21 double x;
22 double y;
23 double direction_x;
24 double direction_y;
27 class ClientLooper : public BLooper {
28 public:
29 ClientLooper(const char* name,
30 WindowLayer* serverWindow);
31 virtual ~ClientLooper();
33 virtual void MessageReceived(BMessage* message);
35 private:
36 WindowLayer* fServerWindow;
37 int32 fViewCount;
39 BMessageRunner* fTicker;
41 void _DrawAnimatedLayer(int32 token);
43 point fPolygon[4];
46 #endif // CLIENT_LOOPER_H