Home | Libraries | People | FAQ | More |
boost::ui::basic_rect — 2D rectangle plane figure data structure with custom coordinates type
// In header: <boost/ui/coord.hpp> template<typename T> class basic_rect : public boost::geometry::model::box public ::boost::polygon::rectangle_data< T > { public: // types typedef T value_type; // Type of coordinates. // construct/copy/destruct basic_rect(const T &, const T &, const T &, const T &); basic_rect(const basic_point< T > &, const basic_size< T > &); basic_rect(const basic_point< T > &, const basic_point< T > &); template<typename D> explicit basic_rect(const basic_rect< D > &); basic_rect(); // public member functions T x() const; T y() const; T width() const; T height() const; };
See Also:
basic_rect
public
construct/copy/destructbasic_rect(const T & x, const T & y, const T & width, const T & height);Constructs rectangle with coordinates.
basic_rect(const basic_point< T > & point, const basic_size< T > & size);Constructs rectangle with coordinates.
basic_rect(const basic_point< T > & point1, const basic_point< T > & point2);Constructs rectangle with coordinates.
template<typename D> explicit basic_rect(const basic_rect< D > & other);Constructs rectangle with coordinates.
basic_rect();Constructs rectangle with empty coordinates.