ScummVM API documentation
credits_dialog.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef BAGEL_DIALOGS_CREDITS_DIALOG_H
24 #define BAGEL_DIALOGS_CREDITS_DIALOG_H
25 
26 #include "bagel/spacebar/boflib/gui/dialog.h"
27 
28 namespace Bagel {
29 namespace SpaceBar {
30 
31 class CBagCreditsDialog : public CBofDialog {
32 public:
34 
35  virtual void onInitDialog();
36 
37 protected:
38  virtual void onPaint(CBofRect *pRect);
39  virtual void onClose();
40 
41  virtual void onKeyHit(uint32 lKey, uint32 lRepCount);
42  virtual void onLButtonDown(uint32 nFlags, CBofPoint *pPoint, void * = nullptr);
43 
44  virtual void onMainLoop();
45 
46  ErrorCode nextScreen();
47  ErrorCode displayCredits();
48  ErrorCode loadNextTextFile();
49  int linesPerPage();
50  void nextLine();
51  ErrorCode paintLine(int nLine, char *pszText);
52 
53  CBofBitmap *_pCreditsBmp;
54  CBofBitmap *_pSaveBmp;
55 
56  char *_pszNextLine;
57  char *_pszEnd;
58  char *_pszText;
59 
60  int _nLines;
61  int _nNumPixels;
62  int _iScreen;
63 
64  bool _bDisplay;
65 };
66 
67 } // namespace SpaceBar
68 } // namespace Bagel
69 
70 #endif
Definition: rect.h:35
Definition: afxwin.h:27
Definition: point.h:32
Definition: dialog.h:39
Definition: bitmap.h:57
Definition: credits_dialog.h:31