xoreos  0.0.5
kotorinventoryitem.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_AURORA_KOTORJADEGUI_KOTORINVENTORYITEM_H
26 #define ENGINES_AURORA_KOTORJADEGUI_KOTORINVENTORYITEM_H
27 
28 #include "src/engines/aurora/gui.h"
29 
31 
32 namespace Engines {
33 
35 public:
36  KotORInventoryItem(GUI &gui, const Common::UString &tag);
37 
38  void setContents(const Common::UString &contents);
39 
40  void load(const Aurora::GFF3Struct &gff);
41 
42  void show();
43  void hide();
44 
45  void setPosition(float x, float y, float z);
46  void setWidth(float width);
47 
48 private:
52 };
53 
54 } // End of namespace Engines
55 
56 #endif // ENGINES_AURORA_KOTORJADEGUI_KOTORINVENTORYITEM_H
A class holding an UTF-8 string.
Definition: ustring.h:48
void setWidth(float width)
Set the width of the widget.
KotORInventoryItem(GUI &gui, const Common::UString &tag)
void setContents(const Common::UString &contents)
Set item contents.
A GUI.
void hide()
Hide the widget.
A GUI.
Definition: gui.h:43
Common::ScopedPtr< Graphics::Aurora::GUIQuad > _icon
Common::ScopedPtr< Graphics::Aurora::Text > _countText
void load(const Aurora::GFF3Struct &gff)
void setPosition(float x, float y, float z)
Set the widget&#39;s position.
A struct within a GFF3.
Definition: gff3file.h:164
A protoitem widget for Star Wars: Knights of the Old Republic and Jade Empire.
Common::ScopedPtr< Graphics::Aurora::GUIQuad > _iconFrame
void show()
Show the widget.