35 TCoord(T
const& _left, T
const& _top, T
const& _width, T
const& _height) :
116 template<
typename U >
165 void set(T
const& _left, T
const& _top, T
const& _width, T
const& _height)
202 std::ostringstream stream;
210 std::istringstream stream(_value);
218 int item = stream.get();
221 if (item !=
' ' && item !=
'\t')
231 _stream << _value.
left <<
" " << _value.
top <<
" " << _value.
width <<
" " << _value.
height;
TCoord & operator+=(TCoord const &_obj)
TCoord(TPoint< T > const &_point, TSize< T > const &_size)
friend std::ostream & operator<<(std::ostream &_stream, const TCoord< T > &_value)
TCoord(TCoord const &_obj)
bool operator==(TCoord const &_obj) const
TCoord & operator-=(TCoord const &_obj)
TCoord(T const &_left, T const &_top, T const &_width, T const &_height)
void set(T const &_left, T const &_top, T const &_width, T const &_height)
TCoord & operator=(TCoord const &_obj)
TPoint< T > point() const
void swap(TCoord &_value)
bool operator!=(TCoord const &_obj) const
TCoord operator-(TCoord const &_obj) const
friend std::istream & operator>>(std::istream &_stream, TCoord< T > &_value)
static TCoord< T > parse(const std::string &_value)
std::string print() const
bool inside(const TPoint< T > &_value) const
TCoord operator+(TCoord const &_obj) const