OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | List of all members
MWGui::Layout Class Reference

#include <layout.hpp>

Inheritance diagram for MWGui::Layout:
Collaboration diagram for MWGui::Layout:

Public Member Functions

 Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr)
 
virtual ~Layout ()
 
MyGUI::Widget * getWidget (const std::string &_name)
 
template<typename T >
void getWidget (T *&_widget, const std::string &_name)
 
void setCoord (int x, int y, int w, int h)
 
virtual void setVisible (bool b)
 
void setText (const std::string &name, const std::string &caption)
 
void setTitle (const std::string &title)
 

Public Attributes

MyGUI::Widget * mMainWidget
 

Protected Attributes

std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 

Private Member Functions

void initialise (const std::string &_layout, MyGUI::Widget *_parent=nullptr)
 
void shutdown ()
 

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

MWGui::Layout::Layout ( const std::string &  _layout,
MyGUI::Widget *  _parent = nullptr 
)
inline

Here is the call graph for this function:

virtual MWGui::Layout::~Layout ( )
inlinevirtual

Here is the call graph for this function:

Member Function Documentation

MyGUI::Widget * MWGui::Layout::getWidget ( const std::string &  _name)
template<typename T >
void MWGui::Layout::getWidget ( T *&  _widget,
const std::string &  _name 
)
inline

Here is the call graph for this function:

void MWGui::Layout::initialise ( const std::string &  _layout,
MyGUI::Widget *  _parent = nullptr 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::Layout::setCoord ( int  x,
int  y,
int  w,
int  h 
)

Here is the caller graph for this function:

void MWGui::Layout::setText ( const std::string &  name,
const std::string &  caption 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::Layout::setTitle ( const std::string &  title)

Here is the caller graph for this function:

void MWGui::Layout::setVisible ( bool  b)
virtual

Reimplemented in anonymous_namespace{journalwindow.cpp}::JournalWindowImpl, MWGui::MapWindow, MWGui::LoadingScreen, MWGui::WindowBase, MWGui::MainMenu, and MWGui::JournalWindow.

Here is the caller graph for this function:

void MWGui::Layout::shutdown ( )
private

Here is the caller graph for this function:

Member Data Documentation

std::string MWGui::Layout::mLayoutName
protected
MyGUI::VectorWidgetPtr MWGui::Layout::mListWindowRoot
protected
MyGUI::Widget* MWGui::Layout::mMainWidget
std::string MWGui::Layout::mPrefix
protected

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