ScummVM API documentation
portrait_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_PORTRAIT_VIEW_GUMP_H
23 #define NUVIE_VIEWS_PORTRAIT_VIEW_GUMP_H
24 
25 #include "ultima/nuvie/views/draggable_view.h"
26 
27 namespace Ultima {
28 namespace Nuvie {
29 
30 class Configuration;
31 class TileManager;
32 class ObjManager;
33 class Screen;
34 class Actor;
35 class Font;
36 class U6Bmp;
37 class Portrait;
38 
40 
41  GUI_Button *gump_button;
42 
43  GUI_Font *font;
44 
45  Portrait *portrait;
46  unsigned char *portrait_data;
47  Actor *actor;
48  bool show_cursor;
49  const Tile *cursor_tile;
50  gumpCursorPos cursor_pos;
51  uint8 cursor_xoff, cursor_yoff;
52 
53 public:
54  PortraitViewGump(const Configuration *cfg);
55  ~PortraitViewGump() override;
56 
57  bool init(Screen *tmp_screen, void *view_manager, uint16 x, uint16 y, Font *f, Party *p, TileManager *tm, ObjManager *om, Portrait *por, Actor *a);
58 
59  void Display(bool full_redraw) override;
60 
61  GUI_status callback(uint16 msg, GUI_CallBack *caller, void *data) override;
62 
63  GUI_status MouseDown(int x, int y, Shared::MouseButton button) override;
64  GUI_status MouseWheel(sint32 x, sint32 y) override;
65 
66 protected:
67 
68  void set_actor(Actor *a);
69  void left_arrow();
70  void right_arrow();
71  GUI_status KeyDown(const Common::KeyState &key) override;
72  GUI_status set_cursor_pos(gumpCursorPos pos);
73 };
74 
75 } // End of namespace Nuvie
76 } // End of namespace Ultima
77 
78 #endif
Definition: actor.h:178
Definition: portrait.h:40
Definition: configuration.h:61
Definition: gui_font.h:36
Definition: gui_button.h:70
Definition: atari-screen.h:60
Definition: tile_manager.h:145
Definition: party.h:92
Definition: screen.h:41
Definition: detection.h:27
Definition: draggable_view.h:34
Definition: portrait_view_gump.h:39
Definition: obj_manager.h:75
Definition: keyboard.h:294
Definition: tile_manager.h:113
Definition: font.h:42
Definition: gui_callback.h:31