ScummVM API documentation
scroll_view_gump.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_VIEWS_SCROLL_VIEW_GUMP_H
23#define NUVIE_VIEWS_SCROLL_VIEW_GUMP_H
24
25#include "ultima/nuvie/views/draggable_view.h"
26
27namespace Ultima {
28namespace Nuvie {
29
30class Configuration;
31class TileManager;
32class ObjManager;
33class Screen;
34class ScrollWidgetGump;
35
37
38 ScrollWidgetGump *scroll_widget;
39
40public:
41 ScrollViewGump(const Configuration *cfg);
42 ~ScrollViewGump() override;
43
44 bool init(Screen *tmp_screen, void *view_manager, Font *f, Party *p, TileManager *tm, ObjManager *om, Common::String text_string);
45
46 void Display(bool full_redraw) override;
47
48 GUI_status callback(uint16 msg, GUI_CallBack *caller, void *data) override;
49
50 GUI_status MouseDown(int x, int y, Events::MouseButton button) override;
51 GUI_status MouseUp(int x, int y, Events::MouseButton button) override {
52 return GUI_YUM;
53 }
54 GUI_status KeyDown(const Common::KeyState &key) override;
55};
56
57} // End of namespace Nuvie
58} // End of namespace Ultima
59
60#endif
Definition: str.h:59
Definition: configuration.h:60
Definition: draggable_view.h:34
Definition: font.h:42
Definition: gui_callback.h:31
Definition: obj_manager.h:74
Definition: party.h:92
Definition: screen.h:41
Definition: scroll_view_gump.h:36
Definition: scroll_widget_gump.h:52
Definition: tile_manager.h:145
Definition: keyboard.h:294
Definition: atari-screen.h:58