3 * Copyright (C) 2020 William Morrow
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 #ifndef __BC_DRAGRECT_H__
23 #define __BC_DRAGRECT_H__
25 #include "bcwindowbase.inc"
26 #include "bcdragbox.inc"
31 class BC_DragBox : public Thread
34 BC_DragBox(BC_WindowBase *parent);
38 virtual int handle_done_event(int x0, int y0, int x1, int y1) { return 0; }
41 BC_WindowBase *parent;
42 BC_DragBoxPopup *popup;
46 class BC_DragBoxPopup : public BC_Popup
49 BC_DragBoxPopup(BC_DragBox *grab_thread);
51 int grab_event(XEvent *event);
53 void draw_selection(int show);
55 BC_DragBox *grab_thread;
59 int lx0, ly0, lx1, ly1;