ScummVM API documentation
textbox.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 NANCY_UI_TEXTBOX_H
23
#define NANCY_UI_TEXTBOX_H
24
25
#include "engines/nancy/misc/hypertext.h"
26
#include "engines/nancy/renderobject.h"
27
28
namespace
Nancy
{
29
30
class
NancyEngine;
31
class
Scene;
32
struct
NancyInput;
33
34
namespace
UI
{
35
36
class
Scrollbar;
37
38
class
Textbox
:
public
Nancy::RenderObject
,
public
Misc::HypertextParser
{
39
public
:
40
Textbox
();
41
virtual
~
Textbox
();
42
43
void
init()
override
;
44
void
registerGraphics()
override
;
45
void
updateGraphics()
override
;
46
void
handleInput(
NancyInput
&input);
47
48
void
drawTextbox();
49
void
clear()
override
;
50
51
void
addTextLine(
const
Common::String
&text, uint32 autoClearTime = 0);
52
void
setOverrideFont(
const
uint fontID);
53
54
private
:
55
uint16 getInnerHeight()
const
;
56
void
onScrollbarMove();
57
58
RenderObject
_highlightRObj;
59
Scrollbar
*_scrollbar;
60
61
float
_scrollbarPos;
62
63
uint32 _autoClearTime;
64
int
_fontIDOverride;
65
};
66
67
}
// End of namespace UI
68
}
// End of namespace Nancy
69
70
#endif // NANCY_UI_TEXTBOX_H
Common::String
Definition:
str.h:59
Nancy::UI::Scrollbar
Definition:
scrollbar.h:33
Nancy::UI::Textbox
Definition:
textbox.h:38
Nancy::NancyInput
Definition:
input.h:41
UI
Definition:
soundequalizerpuzzle.h:27
Nancy::Misc::HypertextParser
Definition:
hypertext.h:32
Nancy::RenderObject
Definition:
renderobject.h:36
Nancy
Definition:
actionmanager.h:32
engines
nancy
ui
textbox.h
Generated on Sat Aug 31 2024 09:08:12 for ScummVM API documentation by
1.8.13