7#ifndef MYGUI_WIDGET_STYLE_H_
8#define MYGUI_WIDGET_STYLE_H_
44 std::string_view name = type.getValueName(value);
45 if (name.empty() || name == _value)
49 type.mValue =
static_cast<Enum>(value);
55 return a.mValue == b.mValue;
60 return a.mValue != b.mValue;
65 _stream << _value.getValueName(_value.mValue);
73 _value = parse(value);
79 return getValueName(mValue);
88 std::string_view getValueName(
int _index)
const
90 if (_index < 0 || _index >= MAX)
92 static const std::string_view values[MAX] = {
"Child",
"Popup",
"Overlapped"};
93 return values[_index];