You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
641 B
C++
25 lines
641 B
C++
#include "exposedwindow.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
MyGUI::VectorWidgetPtr ExposedWindow::getSkinWidgetsByName (const std::string &name)
|
|
{
|
|
return MyGUI::Widget::getSkinWidgetsByName (name);
|
|
}
|
|
|
|
MyGUI::Widget* ExposedWindow::getSkinWidget(const std::string & _name, bool _throw)
|
|
{
|
|
MyGUI::VectorWidgetPtr widgets = getSkinWidgetsByName (_name);
|
|
|
|
if (widgets.empty())
|
|
{
|
|
MYGUI_ASSERT( ! _throw, "widget name '" << _name << "' not found in skin of layout '" << getName() << "'");
|
|
return NULL;
|
|
}
|
|
else
|
|
{
|
|
return widgets[0];
|
|
}
|
|
}
|
|
}
|