xoreos  0.0.5
panel.cpp
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 #include "src/common/system.h"
26 
27 #include "src/aurora/gff3file.h"
28 
30 
32 
33 namespace Engines {
34 
36  : KotORJadeWidget(gui, tag) {
37 }
38 
40  const Common::UString &tag,
41  const Common::UString &texture,
42  float x, float y, float w, float h)
43  : KotORJadeWidget(gui, tag) {
44  _width = w;
45  _height = h;
46 
47  Widget::setPosition(x, y, 0.0f);
48 
49  _quad.reset(new Graphics::Aurora::GUIQuad(texture, 0.0f, 0.0f, w, h));
50  _quad->setPosition(x, y, 0.0f);
51 }
52 
54 }
55 
58 }
59 
60 } // End of namespace Engines
Handling version V3.2/V3.3 of BioWare&#39;s GFFs (generic file format).
A class holding an UTF-8 string.
Definition: ustring.h:48
void reset(PointerType o=0)
Resets the pointer with the new value.
Definition: scopedptr.h:87
Common::ScopedPtr< Graphics::Aurora::GUIQuad > _quad
virtual void setPosition(float x, float y, float z)
Set the widget&#39;s position.
Definition: widget.cpp:119
A panel widget for Star Wars: Knights of the Old Republic and Jade Empire.
A GUI.
Definition: gui.h:43
void load(const Aurora::GFF3Struct &gff)
Definition: panel.cpp:56
A struct within a GFF3.
Definition: gff3file.h:164
Low-level detection of architecture/system properties.
A textured quad for a GUI element.
virtual void load(const Aurora::GFF3Struct &gff)
WidgetPanel(GUI &gui, const Common::UString &tag)
Definition: panel.cpp:35