22 #ifndef __MyGUI_TCOORD_H__
23 #define __MyGUI_TCOORD_H__
50 TCoord(T
const& _left, T
const& _top, T
const& _width, T
const& _height) :
131 template<
typename U >
180 void set(T
const& _left, T
const& _top, T
const& _width, T
const& _height)
217 std::ostringstream stream;
225 std::istringstream stream(_value);
233 int item = stream.get();
236 if (item !=
' ' && item !=
'\t')
244 friend std::ostream& operator << (std::ostream& _stream, const TCoord<T>& _value)
246 _stream << _value.
left <<
" " << _value.top <<
" " << _value.width <<
" " << _value.height;
263 #endif // __MyGUI_TCOORD_H__
std::string print() const
bool operator==(TCoord const &_obj) const
void swap(TCoord &_value)
TCoord operator+(TCoord const &_obj) const
bool operator!=(TCoord const &_obj) const
void set(T const &_left, T const &_top, T const &_width, T const &_height)
bool inside(const TPoint< T > &_value) const
TCoord(TPoint< T > const &_point, TSize< T > const &_size)
TCoord(TCoord const &_obj)
TCoord & operator=(TCoord const &_obj)
TCoord operator-(TCoord const &_obj) const
TCoord & operator-=(TCoord const &_obj)
TCoord(T const &_left, T const &_top, T const &_width, T const &_height)
static TCoord< T > parse(const std::string &_value)
friend std::istream & operator>>(std::istream &_stream, TCoord< T > &_value)
TPoint< T > point() const
TCoord & operator+=(TCoord const &_obj)