ScummVM API documentation
gui_text.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 NUVIE_GUI_GUI_TEXT_H
23
#define NUVIE_GUI_GUI_TEXT_H
24
25
#include "ultima/nuvie/gui/widgets/gui_widget.h"
26
27
namespace
Ultima
{
28
namespace
Nuvie {
29
30
class
GUI_Font;
31
32
class
GUI_Text
:
public
GUI_Widget
{
33
protected
:
34
uint8 R, G, B;
35
char
*text;
36
GUI_Font
*font;
37
uint16 max_width;
//max line width. No limit if set to 0
38
39
public
:
40
GUI_Text
(
int
x,
int
y, uint8 r, uint8 g, uint8 b,
GUI_Font
*gui_font, uint16 line_length);
41
GUI_Text
(
int
x,
int
y, uint8 r, uint8 g, uint8 b,
const
char
*str,
GUI_Font
*gui_font, uint16 line_length = 0);
42
~
GUI_Text
()
override
;
43
44
/* Show the widget */
45
void
Display(
bool
full_redraw)
override
;
46
47
void
setText(
const
char
*txt);
48
};
49
50
}
// End of namespace Nuvie
51
}
// End of namespace Ultima
52
53
#endif
Ultima::Nuvie::GUI_Widget
Definition:
gui_widget.h:38
Ultima::Nuvie::GUI_Font
Definition:
gui_font.h:36
Ultima::Nuvie::GUI_Text
Definition:
gui_text.h:32
Ultima
Definition:
detection.h:27
engines
ultima
nuvie
gui
gui_text.h
Generated on Fri Nov 22 2024 09:27:15 for ScummVM API documentation by
1.8.13