60 else if (
_widget->findAttribute(
"position_real",
tmp))
70 if (
node->getName() ==
"Widget")
74 else if (
node->getName() ==
"Property")
76 widgetInfo.properties.emplace_back(
node->findAttribute(
"key"),
node->findAttribute(
"value"));
78 else if (
node->getName() ==
"UserString")
80 std::string_view key =
node->findAttribute(
"key");
81 std::string_view value =
node->findAttribute(
"value");
84 else if (
node->getName() ==
"Controller")
92 std::string_view key =
prop->findAttribute(
"key");
93 std::string_view value =
prop->findAttribute(
"value");
139 "Root widget's layer is not specified, widget won't be visible. Specify layer or parent or attach it "
140 "to another widget after load."
215 MYGUI_LOG(Warning,
"Controller '" <<
iter.type <<
"' not found");
#define MYGUI_LOG(level, text)
virtual void setProperty(std::string_view, std::string_view)
static ControllerManager & getInstance()
static IntCoord convertFromRelative(const FloatCoord &_coord, const IntSize &_view)
static Gui & getInstance()
std::string mResourceName
static LayoutManager & getInstance()
static RenderManager & getInstance()
VectorWidgetInfo mLayoutData
void deserialization(xml::ElementPtr _node, Version _version) override
Widget * createWidget(const WidgetInfo &_widgetInfo, std::string_view _prefix={}, Widget *_parent=nullptr, bool _template=false)
VectorWidgetPtr createLayout(std::string_view _prefix={}, Widget *_parent=nullptr)
WidgetInfo parseWidget(xml::ElementEnumerator &_widget)
const VectorWidgetInfo & getLayoutData() const
void mapSet(Map &map, std::string_view key, const Value &value)
std::vector< WidgetInfo > VectorWidgetInfo
std::vector< Widget * > VectorWidgetPtr
static Align parse(std::string_view _value)
static TCoord< int > parse(std::string_view _value)