ScummVM API documentation
dev_dlg.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_BAGLIB_DEV_DLG_H
24 #define BAGEL_BAGLIB_DEV_DLG_H
25 
26 #include "bagel/baglib/storage_dev_win.h"
27 #include "bagel/boflib/gfx/text.h"
28 
29 namespace Bagel {
30 
31 #define ACH_GUESS_MAX_CHARS 40
32 
33 class CDevDlg : public CBagStorageDevDlg {
34 private:
35  // for text entry:
36  char _achGuess[ACH_GUESS_MAX_CHARS];
37  CBofText *_guessText;
38  int _guessCount;
39  int _buttonX;
40  int _buttonY;
41  bool _useExtraFl;
42  CBofText *_titleText;
43 
44 public:
45  CDevDlg(int buttonX = -1, int buttonY = -1);
46  ~CDevDlg();
47 
48  ErrorCode createWindow(const char *bmp, CBofWindow *wnd, CBofPalette *pal, CBofRect *rect, bool useExtraFl);
49  void paintText();
50  void setText(CBofString &, CBofRect *);
51  void onKeyHit(uint32 keyCode, uint32 repCount) override;
52 
53  void onMouseMove(uint32 flags, CBofPoint *point, void * = nullptr) override;
54  void onLButtonUp(uint32 flags, CBofPoint *point, void * = nullptr) override;
55  void onClose() override;
56  ErrorCode onRender(CBofBitmap *bmp, CBofRect *rect = nullptr) override;
57 };
58 
59 } // namespace Bagel
60 
61 #endif
Definition: window.h:50
Definition: bitmap.h:55
Definition: rect.h:36
Definition: string.h:38
Definition: bagel.h:31
Definition: storage_dev_win.h:482
Definition: point.h:34
Definition: palette.h:69
Definition: text.h:122
Definition: dev_dlg.h:33