25 #ifndef ENGINES_JADE_GUI_GUI_H 26 #define ENGINES_JADE_GUI_GUI_H 42 class KotORJadeWidget;
46 class WidgetProtoItem;
50 class WidgetScrollbar;
51 class WidgetProgressbar;
70 void convertToXoreos(
float &x,
float &y,
const float widgetHeight)
const;
76 void convertToGUI(
float &x,
float &y,
const float widgetHeight)
const;
150 #endif // ENGINES_JADE_GUI_GUI_H Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
A class holding an UTF-8 string.
WidgetButton * getButton(const Common::UString &tag, bool vital=false)
WidgetScrollbar * getScrollbar(const Common::UString &tag, bool vital=false)
void loadWidget(const Aurora::GFF3Struct &strct, Widget *parent)
virtual void hide()
Hide the GUI.
const Aurora::GFF3Struct * strct
A simple scoped smart pointer template.
Common::UString getName() const
WidgetContext(const Aurora::GFF3Struct &s, Widget *p)
WidgetProtoItem * getProtoItem(const Common::UString &tag, bool vital=false)
Basic Aurora graphics types.
void addBackground(const Common::UString &background, bool front=false)
WidgetSlider * getSlider(const Common::UString &tag, bool vital=false)
GUI(::Engines::Console *console=0)
A scoped plain pointer, allowing pointer-y access and normal deletion.
Common::ScopedPtr< Aurora::GFF3File > _gff
void convertToGUI(float &x, float &y, const float widgetHeight) const
Converts Xoreos' coordinates with a coordinate origin in the center to Jade Empire's GUI coordinates ...
Basic type definitions to handle files used in BioWare's Aurora engine.
void load(const Common::UString &resref)
virtual void show()
Show the GUI.
void setCheckBoxState(const Common::UString &tag, bool state)
void createWidget(WidgetContext &ctx)
virtual void initWidget(Widget &widget)
void convertToXoreos(float &x, float &y, const float widgetHeight) const
Converts Jade Empire' GUI coordinates with a coordinate origin in the upper left corner to the Xoreos...
WidgetListBox * getListBox(const Common::UString &tag, bool vital=false)
WidgetCheckBox * getCheckBox(const Common::UString &tag, bool vital=false)
Common::ScopedPtr< GUIBackground > _background
virtual void mouseUp()
The mouse state has changed.
bool getCheckBoxState(const Common::UString &tag)
WidgetPanel * getPanel(const Common::UString &tag, bool vital=false)
WidgetProgressbar * getProgressbar(const Common::UString &tag, bool vital=false)
WidgetLabel * getLabel(const Common::UString &tag, bool vital=false)