22 #ifndef __MYGUI_TRECT_H__
23 #define __MYGUI_TRECT_H__
48 TRect(T
const& _left, T
const& _top, T
const& _right, T
const& _bottom) :
136 void set(T
const& _left, T
const& _top, T
const& _right, T
const& _bottom)
173 std::ostringstream stream;
181 std::istringstream stream(_value);
189 int item = stream.get();
192 if (item !=
' ' && item !=
'\t')
200 friend std::ostream& operator << (std::ostream& _stream, const TRect<T>& _value)
202 _stream << _value.
left <<
" " << _value.top <<
" " << _value.right <<
" " << _value.bottom;
219 #endif // __MYGUI_TRECT_H__
TRect & operator-=(TRect const &_obj)
bool inside(const TRect< T > &_value) const
TRect & operator=(TRect const &_obj)
bool intersect(const TRect< T > &_value) const
static TRect< T > parse(const std::string &_value)
TRect(T const &_left, T const &_top, T const &_right, T const &_bottom)
friend std::istream & operator>>(std::istream &_stream, TRect< T > &_value)
std::string print() const
bool operator!=(TRect const &_obj) const
void set(T const &_left, T const &_top, T const &_right, T const &_bottom)
TRect operator-(TRect const &_obj) const
TRect & operator+=(TRect const &_obj)
bool inside(const TPoint< T > &_value) const
bool operator==(TRect const &_obj) const
TRect operator+(TRect const &_obj) const