xoreos
0.0.5
src
engines
nwn
gui
widgets
editbox.h
Go to the documentation of this file.
1
/* xoreos - A reimplementation of BioWare's Aurora engine
2
*
3
* xoreos is the legal property of its developers, whose names
4
* can be found in the AUTHORS file distributed with this source
5
* distribution.
6
*
7
* xoreos is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
11
*
12
* xoreos 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 xoreos. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
25
#ifndef ENGINES_NWN_GUI_WIDGETS_EDITBOX_H
26
#define ENGINES_NWN_GUI_WIDGETS_EDITBOX_H
27
28
#include "
src/common/scopedptr.h
"
29
30
#include "
src/engines/nwn/gui/widgets/listbox.h
"
31
32
namespace
Common
{
33
class
UString;
34
}
35
36
namespace
Engines
{
37
38
class
GUI;
39
40
namespace
NWN {
41
43
class
WidgetEditBox
:
public
WidgetListBox
{
44
public
:
45
WidgetEditBox
(::
Engines::GUI
&gui,
const
Common::UString
&tag,
46
const
Common::UString
&model);
47
~WidgetEditBox
();
48
49
void
show
();
50
void
hide
();
51
53
void
setTitle
(
const
Common::UString
&font,
const
Common::UString
&title);
54
55
private
:
56
// FIXME As there is no mechanism to easily scroll text (like the render-to-texture way),
57
// lines are shown by WidgetListBox but should ideally use WidgetText
58
59
Common::ScopedPtr<Graphics::Aurora::Text>
_title
;
60
};
61
62
}
// End of namespace NWN
63
64
}
// End of namespace Engines
65
66
#endif // ENGINES_NWN_GUI_WIDGETS_EDITBOX_H
Engines::NWN::WidgetEditBox::hide
void hide()
Hide the widget.
Definition:
editbox.cpp:52
Common
Definition:
2dafile.h:39
Common::UString
A class holding an UTF-8 string.
Definition:
ustring.h:48
Engines::NWN::WidgetEditBox::show
void show()
Show the widget.
Definition:
editbox.cpp:45
scopedptr.h
A simple scoped smart pointer template.
listbox.h
A NWN listbox widget.
Engines::GUI
A GUI.
Definition:
gui.h:43
Engines::NWN::WidgetListBox
A NWN listbox widget.
Definition:
listbox.h:116
Engines
Definition:
console.cpp:69
Common::ScopedPtr< Graphics::Aurora::Text >
Engines::NWN::WidgetEditBox::~WidgetEditBox
~WidgetEditBox()
Definition:
editbox.cpp:42
Engines::NWN::WidgetEditBox::setTitle
void setTitle(const Common::UString &font, const Common::UString &title)
Set title text if available.
Definition:
editbox.cpp:59
Engines::NWN::WidgetEditBox
A NWN editbox widget.
Definition:
editbox.h:43
Engines::NWN::WidgetEditBox::WidgetEditBox
WidgetEditBox(::Engines::GUI &gui, const Common::UString &tag, const Common::UString &model)
Definition:
editbox.cpp:37
Engines::NWN::WidgetEditBox::_title
Common::ScopedPtr< Graphics::Aurora::Text > _title
Definition:
editbox.h:59
Generated on Sun Nov 18 2018 15:13:40 for xoreos by
1.8.14