OpenMW
|
#include <layout.hpp>
Public Member Functions | |
Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr) | |
virtual | ~Layout () |
template<typename T > | |
void | getWidget (T *&_widget, const std::string &_name, bool _throw=true) |
void | initialise (const std::string &_layout, MyGUI::Widget *_parent=nullptr) |
void | shutdown () |
void | setCoord (int x, int y, int w, int h) |
void | adjustWindowCaption () |
virtual void | setVisible (bool b) |
void | setText (const std::string &name, const std::string &caption) |
void | setTitle (const std::string &title) |
void | setState (const std::string &widget, const std::string &state) |
void | setTextColor (const std::string &name, float r, float g, float b) |
void | setImage (const std::string &name, const std::string &imgName) |
void | adjustButtonSize (MyGUI::Button *button) |
Public Attributes | |
MyGUI::Widget * | mMainWidget |
Protected Attributes | |
std::string | mPrefix |
std::string | mLayoutName |
MyGUI::VectorWidgetPtr | mListWindowRoot |
The Layout class is an utility class used to load MyGUI layouts from xml files, and to manipulate member widgets.
OEngine::GUI::Layout::Layout | ( | const std::string & | _layout, |
MyGUI::Widget * | _parent = nullptr |
||
) | [inline] |
virtual OEngine::GUI::Layout::~Layout | ( | ) | [inline, virtual] |
void OEngine::GUI::Layout::adjustButtonSize | ( | MyGUI::Button * | button | ) | [inline] |
void OEngine::GUI::Layout::adjustWindowCaption | ( | ) | [inline] |
void OEngine::GUI::Layout::getWidget | ( | T *& | _widget, |
const std::string & | _name, | ||
bool | _throw = true |
||
) | [inline] |
void OEngine::GUI::Layout::initialise | ( | const std::string & | _layout, |
MyGUI::Widget * | _parent = nullptr |
||
) | [inline] |
void OEngine::GUI::Layout::setCoord | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) | [inline] |
void OEngine::GUI::Layout::setImage | ( | const std::string & | name, |
const std::string & | imgName | ||
) | [inline] |
void OEngine::GUI::Layout::setState | ( | const std::string & | widget, |
const std::string & | state | ||
) | [inline] |
void OEngine::GUI::Layout::setText | ( | const std::string & | name, |
const std::string & | caption | ||
) | [inline] |
void OEngine::GUI::Layout::setTextColor | ( | const std::string & | name, |
float | r, | ||
float | g, | ||
float | b | ||
) | [inline] |
void OEngine::GUI::Layout::setTitle | ( | const std::string & | title | ) | [inline] |
virtual void OEngine::GUI::Layout::setVisible | ( | bool | b | ) | [inline, virtual] |
Reimplemented in anonymous_namespace{journalwindow.cpp}::JournalWindowImpl, and MWGui::WindowBase.
void OEngine::GUI::Layout::shutdown | ( | ) | [inline] |
std::string OEngine::GUI::Layout::mLayoutName [protected] |
MyGUI::VectorWidgetPtr OEngine::GUI::Layout::mListWindowRoot [protected] |
MyGUI::Widget* OEngine::GUI::Layout::mMainWidget |
std::string OEngine::GUI::Layout::mPrefix [protected] |