29 TSize(T
const& _width, T
const& _height) :
82 return ((width == _obj.
width) && (height == _obj.
height));
87 return !((width == _obj.
width) && (height == _obj.
height));
95 void set(T
const& _width, T
const& _height)
110 return ((width == 0) && (height == 0));
115 std::ostringstream stream;
123 std::istringstream stream(_value);
131 int item = stream.get();
134 if (item !=
' ' && item !=
'\t')
142 friend std::ostream& operator << (std::ostream& _stream, const TSize<T>& _value)
144 _stream << _value.
width <<
" " << _value.height;
161 #endif // MYGUI_TSIZE_H_
bool operator==(TSize const &_obj) const
std::string print() const
TSize & operator-=(TSize const &_obj)
bool operator!=(TSize const &_obj) const
static TSize< T > parse(const std::string &_value)
TSize & operator+=(TSize const &_obj)
TSize operator-(TSize const &_obj) 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)