29 TPoint(T
const& _left, T
const& _top) :
82 return ((left == _obj.
left) && (top == _obj.
top));
87 return ! ((left == _obj.
left) && (top == _obj.
top));
95 void set(T
const& _left, T
const& _top)
110 return ((left == 0) && (top == 0));
115 std::ostringstream stream;
123 std::istringstream stream(_value);
124 stream >> result.
left >> result.
top;
131 int item = stream.get();
134 if (item !=
' ' && item !=
'\t')
142 friend std::ostream& operator << (std::ostream& _stream, const TPoint<T>& _value)
144 _stream << _value.
left <<
" " << _value.top;
150 _stream >> _value.
left >> _value.
top;
161 #endif // MYGUI_TPONT_H_ TPoint operator-(TPoint const &_obj) const
TPoint(T const &_left, T const &_top)
std::string print() const
TPoint(TPoint const &_obj)
TPoint & operator+=(TPoint const &_obj)
bool operator==(TPoint const &_obj) const
TPoint & operator-=(TPoint const &_obj)
TPoint operator+(TPoint const &_obj) const
bool operator!=(TPoint const &_obj) const
void swap(TPoint &_value)
static TPoint< T > parse(const std::string &_value)
friend std::istream & operator>>(std::istream &_stream, TPoint< T > &_value)
TPoint & operator=(TPoint const &_obj)