1 #ifndef __BC_DRAGRECT_H__
2 #define __BC_DRAGRECT_H__
4 #include "bcwindowbase.inc"
5 #include "bcdragbox.inc"
10 class BC_DragBox : public Thread
13 BC_DragBox(BC_WindowBase *parent);
17 virtual int handle_done_event(int x0, int y0, int x1, int y1) { return 0; }
20 BC_WindowBase *parent;
21 BC_DragBoxPopup *popup;
25 class BC_DragBoxPopup : public BC_Popup
28 BC_DragBoxPopup(BC_DragBox *grab_thread);
30 int grab_event(XEvent *event);
32 void draw_selection(int show);
34 BC_DragBox *grab_thread;
38 int lx0, ly0, lx1, ly1;