|
Boost.UI
User Interface Boost library
|
2D rectangle plane figure data structure with custom coordinates type More...
Public Types | |
| typedef T | value_type |
| Type of coordinates. | |
Public Member Functions | |
| basic_rect () | |
| Constructs rectangle with empty coordinates. | |
| T | x () const |
| Returns x coordinate. | |
| T | y () const |
| Returns y coordinate. | |
| T | width () const |
| Returns width. | |
| T | height () const |
| Returns height. | |
| basic_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<class D > | |
| basic_rect (const basic_rect< D > &other) | |
| Constructs rectangle with coordinates. | |
| bool | operator== (const basic_rect &other) const |
| Compares two rectangles. | |
| bool | operator!= (const basic_rect &other) const |
| Compares two rectangles. | |
Related Functions | |
(Note that these are not member functions.) | |
| template<class T , class CharT , class Traits > | |
| std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &os, const basic_rect< T > &r) |
| Writes basic_rect into the stream. | |
2D rectangle plane figure data structure with custom coordinates type