ScummVM API documentation
zoom_pda.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_ZOOM_PDA_H
24#define BAGEL_BAGLIB_ZOOM_PDA_H
25
26#include "bagel/spacebar/baglib/storage_dev_win.h"
27#include "bagel/spacebar/baglib/base_pda.h"
28
29namespace Bagel {
30namespace SpaceBar {
31
32class SBZoomPda : public CBagStorageDevWnd, public SBBasePda {
33public:
40 SBZoomPda(CBofWindow *pParent = nullptr, const CBofRect &xRect = CBofRect(), bool bActivated = true);
41 static void initialize();
42
43 ErrorCode attach() override;
44 ErrorCode detach() override;
45
46 ErrorCode loadFile(const CBofString &sFile) override;
47 void onMouseMove(uint32 nFlags, CBofPoint *, void * = nullptr) override;
48
53 CBagObject *onNewButtonObject(const CBofString &sInit) override;
54
55 void onMainLoop() override;
56
57 void onLButtonUp(uint32 nFlags, CBofPoint *xPoint, void * = nullptr) override;
58 ErrorCode onRender(CBofBitmap *pBmp, CBofRect *pRect = nullptr) override;
59
60 ErrorCode attachActiveObjects() override;
61 ErrorCode detachActiveObjects() override;
62};
63
64} // namespace SpaceBar
65} // namespace Bagel
66
67#endif
Definition: point.h:32
Definition: rect.h:35
Definition: string.h:38
Definition: object.h:86
Definition: storage_dev_win.h:410
Definition: bitmap.h:57
Definition: window.h:53
Definition: base_pda.h:53
Definition: zoom_pda.h:32
CBagObject * onNewButtonObject(const CBofString &sInit) override
SBZoomPda(CBofWindow *pParent=nullptr, const CBofRect &xRect=CBofRect(), bool bActivated=true)