OpenMW
Public Member Functions | Public Attributes | Protected Attributes
OEngine::GUI::Layout Class Reference

#include <layout.hpp>

List of all members.

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

Detailed Description

The Layout class is an utility class used to load MyGUI layouts from xml files, and to manipulate member widgets.


Constructor & Destructor Documentation

OEngine::GUI::Layout::Layout ( const std::string &  _layout,
MyGUI::Widget *  _parent = nullptr 
) [inline]
virtual OEngine::GUI::Layout::~Layout ( ) [inline, virtual]

Member Function Documentation

void OEngine::GUI::Layout::adjustButtonSize ( MyGUI::Button *  button) [inline]
template<typename T >
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]
void OEngine::GUI::Layout::shutdown ( ) [inline]

Member Data Documentation

std::string OEngine::GUI::Layout::mLayoutName [protected]
MyGUI::VectorWidgetPtr OEngine::GUI::Layout::mListWindowRoot [protected]
std::string OEngine::GUI::Layout::mPrefix [protected]

The documentation for this class was generated from the following file: