7#ifndef MYGUI_WIDGET_STYLE_H_
8#define MYGUI_WIDGET_STYLE_H_
44 const char* name = type.getValueName(value);
45 if (strcmp(name,
"") == 0 || name == _value)
49 type.mValue = (
Enum)value;
55 return a.mValue == b.mValue;
60 return a.mValue != b.mValue;
63 friend std::ostream& operator << (std::ostream& _stream,
const WidgetStyle& _value)
65 _stream << _value.getValueName(_value.mValue);
69 friend std::istream& operator >> (std::istream& _stream,
WidgetStyle& _value)
73 _value = parse(value);
79 return getValueName(mValue);
88 const char* getValueName(
int _index)
const
90 static const char* values[MAX + 1] = {
"Child",
"Popup",
"Overlapped",
"" };
91 return values[(_index < MAX && _index >= 0) ? _index : MAX];
bool operator==(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator!=(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)