Boost.UI
User Interface Boost library
|
2D point data structure with custom coordinates type More...
Public Types | |
typedef T | value_type |
Type of coordinates. | |
Public Member Functions | |
basic_point () | |
Constructs point with empty coordinates. | |
basic_point (const T &x, const T &y) | |
Constructs point with x and y coordinates. | |
template<class D > | |
basic_point (const basic_point< D > &p) | |
Constructs size with an other size object. | |
T | x () const |
Returns x coordinate. | |
T | y () const |
Returns y coordinate. | |
void | x (const T &x) |
Sets x coordinate. | |
void | y (const T &y) |
Sets y coordinate. | |
bool | operator== (const basic_point &other) const |
Compares two points. | |
bool | operator!= (const basic_point &other) const |
Compares two points. | |
basic_point & | operator+= (const basic_size< T > &other) |
Arithmetic operation. | |
basic_point & | operator-= (const basic_size< T > &other) |
Arithmetic operation. | |
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_point< T > &p) |
Writes basic_point into the stream. | |
2D point data structure with custom coordinates type