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/boflib/gui/dialog.h"
27 
28 namespace Bagel {
29 
30 class CBagCreditsDialog : public CBofDialog {
31 public:
33 
34  virtual void onInitDialog();
35 
36 protected:
37  virtual void onPaint(CBofRect *pRect);
38  virtual void onClose();
39 
40  virtual void onKeyHit(uint32 lKey, uint32 lRepCount);
41  virtual void onLButtonDown(uint32 nFlags, CBofPoint *pPoint, void * = nullptr);
42 
43  virtual void onMainLoop();
44 
45  ErrorCode nextScreen();
46  ErrorCode displayCredits();
47  ErrorCode loadNextTextFile();
48  int linesPerPage();
49  void nextLine();
50  ErrorCode paintLine(int nLine, char *pszText);
51 
52  CBofBitmap *_pCreditsBmp;
53  CBofBitmap *_pSaveBmp;
54 
55  char *_pszNextLine;
56  char *_pszEnd;
57  char *_pszText;
58 
59  int _nLines;
60  int _nNumPixels;
61  int _iScreen;
62 
63  bool _bDisplay;
64 };
65 
66 } // namespace Bagel
67 
68 #endif
Definition: bitmap.h:55
Definition: dialog.h:38
Definition: rect.h:36
Definition: credits_dialog.h:30
Definition: bagel.h:31
Definition: point.h:34