ScummVM API documentation
gui_drag_area.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef NUVIE_GUI_GUI_DRAG_AREA_H
23 #define NUVIE_GUI_GUI_DRAG_AREA_H
24 
25 #include "ultima/nuvie/gui/gui_callback.h"
26 
27 namespace Ultima {
28 namespace Nuvie {
29 
30 class GUI_DragArea : public GUI_CallBack {
31 
32 protected:
33  bool drop_target;
34  bool dragging;
35 
36 public:
37 
38  GUI_DragArea() {
39  dragging = false;
40  drop_target = true;
41  }
42 
43  bool is_drop_target() {
44  return drop_target;
45  }
46 
47  virtual bool drag_accept_drop(int x, int y, int message, void *data) {
48  return false;
49  }
50  virtual void drag_perform_drop(int x, int y, int message, void *data) {
51  return;
52  }
53  virtual void drag_drop_failed(int x, int y, int message, void *data) {
54  return;
55  }
56  virtual void drag_drop_success(int x, int y, int message, void *data) {
57  return;
58  }
59  virtual void drag_draw(int x, int y, int message, void *data) {
60  return;
61  }
62 
63 };
64 
65 } // End of namespace Nuvie
66 } // End of namespace Ultima
67 
68 #endif
Definition: gui_drag_area.h:30
Definition: detection.h:27
Definition: gui_callback.h:31