22 #ifndef __MYGUI_TSIZE_H__
23 #define __MYGUI_TSIZE_H__
44 TSize(T
const& _width, T
const& _height) :
110 void set(T
const& _width, T
const& _height)
130 std::ostringstream stream;
138 std::istringstream stream(_value);
146 int item = stream.get();
149 if (item !=
' ' && item !=
'\t')
157 friend std::ostream& operator << (std::ostream& _stream, const TSize<T>& _value)
159 _stream << _value.
width <<
" " << _value.height;
176 #endif // __MYGUI_TSIZE_H__
bool operator==(TSize const &_obj) const
TSize & operator-=(TSize const &_obj)
void set(T const &_width, T const &_height)
static TSize< T > parse(const std::string &_value)
bool operator!=(TSize const &_obj) const
TSize & operator+=(TSize const &_obj)
TSize operator-(TSize const &_obj) const
std::string print() const
TSize(T const &_width, T const &_height)
TSize & operator=(TSize const &_obj)
TSize operator+(TSize const &_obj) const
friend std::istream & operator>>(std::istream &_stream, TSize< T > &_value)