ScummVM API documentation
diarypages.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
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef STARK_UI_MENU_DIARY_PAGES_H
23
#define STARK_UI_MENU_DIARY_PAGES_H
24
25
#include "engines/stark/ui/menu/locationscreen.h"
26
27
namespace
Stark
{
28
32
class
DiaryPagesScreen
:
public
StaticLocationScreen
{
33
public
:
34
DiaryPagesScreen
(
Gfx::Driver
*gfx,
Cursor
*cursor);
35
virtual
~
DiaryPagesScreen
();
36
37
// StaticLocationScreen API
38
void
open
()
override
;
39
void
close
()
override
;
40
41
private
:
42
enum
WidgetIndex {
43
kWidgetBack = 3,
44
kWidgetNext = 4
45
};
46
47
uint _page;
48
49
void
backHandler();
50
51
void
prevPageHandler() { changePage(_page - 1); }
52
void
nextPageHandler() { changePage(_page + 1); }
53
void
changePage(uint page);
54
};
55
59
class
DiaryWidget
:
public
StaticLocationWidget
{
60
public
:
61
DiaryWidget
(uint diaryIndex);
62
~
DiaryWidget
() {}
63
};
64
65
}
// End of namespace Stark
66
67
#endif // STARK_UI_MENU_DIARY_PAGES_H
Stark::StaticLocationWidget
Definition:
locationscreen.h:92
Stark::DiaryWidget
Definition:
diarypages.h:59
Stark::DiaryPagesScreen::close
void close() override
Stark::DiaryPagesScreen
Definition:
diarypages.h:32
Stark::Gfx::Driver
Definition:
driver.h:44
Stark::Cursor
Definition:
cursor.h:45
Stark::StaticLocationScreen
Definition:
locationscreen.h:46
Stark
Definition:
console.h:27
Stark::DiaryPagesScreen::open
void open() override
engines
stark
ui
menu
diarypages.h
Generated on Fri Nov 22 2024 09:24:19 for ScummVM API documentation by
1.8.13