ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
answer_entry.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 MM1_VIEWS_MAPS_ANSWER_ENTRY_H
23
#define MM1_VIEWS_MAPS_ANSWER_ENTRY_H
24
25
#include "mm/mm1/views/text_view.h"
26
27
namespace
MM
{
28
namespace
MM1 {
29
namespace
Views {
30
namespace
Interactions {
31
32
class
AnswerEntry
:
public
TextView
{
33
private
:
34
Common::Point
_pos;
35
size_t
_maxLength;
36
char
_blank =
'.'
;
37
protected
:
38
Common::String
_answer;
39
43
virtual
void
answerEntered
() = 0;
44
45
public
:
46
AnswerEntry
(
const
Common::String
&name,
47
const
Common::Point
&pos,
size_t
maxLength);
48
virtual
~
AnswerEntry
() {}
49
50
bool
msgFocus(
const
FocusMessage
&msg)
override
;
51
void
draw
()
override
;
52
bool
msgKeypress(
const
KeypressMessage
&msg)
override
;
53
};
54
55
}
// namespace Interactions
56
}
// namespace Views
57
}
// namespace MM1
58
}
// namespace MM
59
60
#endif
Common::String
Definition:
str.h:59
MM::MM1::Views::Interactions::AnswerEntry::draw
void draw() override
MM::MM1::KeypressMessage
Definition:
messages.h:56
MM::MM1::Views::TextView
Definition:
text_view.h:35
MM
Definition:
detection.h:27
Common::Point
Definition:
rect.h:45
MM::MM1::Views::Interactions::AnswerEntry::answerEntered
virtual void answerEntered()=0
MM::MM1::FocusMessage
Definition:
messages.h:41
MM::MM1::Views::Interactions::AnswerEntry
Definition:
answer_entry.h:32
engines
mm
mm1
views
interactions
answer_entry.h
Generated on Sat Apr 5 2025 09:16:57 for ScummVM API documentation by
1.8.13