22 #ifndef __MYGUI_RESIZING_POLICY_H__
23 #define __MYGUI_RESIZING_POLICY_H__
51 const char* name = type.getValueName(value);
52 if (strcmp(name,
"") == 0 || name == _value)
56 type.value =
Enum(value);
62 return a.value == b.value;
67 return a.value != b.value;
70 friend std::ostream& operator << (std::ostream& _stream,
const ResizingPolicy& _value)
72 _stream << _value.getValueName(_value.value);
76 friend std::istream& operator >> (std::istream& _stream,
ResizingPolicy& _value)
80 _value = parse(value);
86 return getValueName(value);
90 const char* getValueName(
int _index)
const
92 static const char* values[MAX + 1] = {
"Auto",
"Fixed",
"Fill",
"" };
93 return values[(_index < MAX && _index >= 0) ? _index : MAX];
102 #endif // __MYGUI_RESIZING_POLICY_H__
std::string print() const
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)
ResizingPolicy(Enum _value=MAX)
static ResizingPolicy parse(const std::string &_value)