ScummVM API documentation
inventory_info.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  * Additional copyright for this file:
8  * Copyright (C) 1995 Presto Studios, Inc.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19 
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef BURIED_INVENTORY_INFO_H
26 #define BURIED_INVENTORY_INFO_H
27 
28 #include "buried/navdata.h"
29 #include "buried/window.h"
30 
31 namespace Graphics {
32 class Font;
33 struct Surface;
34 }
35 
36 namespace Buried {
37 
38 class AVIFrames;
39 
40 class InventoryInfoWindow : public Window {
41 public:
42  InventoryInfoWindow(BuriedEngine *vm, Window *parent, int currentItemID);
44 
45  bool changeCurrentItem(int newItemID);
46 
47  void onPaint();
48  bool onEraseBackground();
49  void onLButtonUp(const Common::Point &point, uint flags);
50  void onTimer(uint timer);
51 
52 private:
53  Graphics::Font *_textFont;
54  int _fontHeight;
55  int _currentItemID;
56  VideoWindow *_videoWindow;
57  int32 _spinStart;
58  int32 _spinLength;
59  uint _timer;
60 };
61 
63 public:
64  BurnedLetterViewWindow(BuriedEngine *vm, Window *parent, const LocationStaticData &curSceneStaticData);
66 
67  void onPaint();
68  void onLButtonUp(const Common::Point &point, uint flags);
69  void onMouseMove(const Common::Point &point, uint flags);
70  bool onSetCursor(uint message);
71 
72 private:
73  LocationStaticData _curSceneStaticData;
74  int _viewCount;
75  int _curView;
76  Common::Rect _top, _bottom, _left, _right, _putDown;
77  int _translatedTextResourceID;
78  int _curLineIndex;
79  Graphics::Surface *_preBuffer;
80  AVIFrames *_stillFrames;
81  Common::Point _curMousePos;
82  int _viewLineCount[3];
83  bool _rebuildPage;
84 };
85 
86 } // End of namespace Buried
87 
88 #endif
Definition: window.h:37
Definition: font.h:83
Definition: surface.h:67
Definition: inventory_info.h:62
Definition: avi_frames.h:42
Definition: rect.h:144
Definition: navdata.h:72
Definition: buried.h:67
Definition: agent_evaluation.h:31
Definition: video_window.h:37
Definition: formatinfo.h:28
Definition: rect.h:45
Definition: inventory_info.h:40