Boost.UI
User Interface Boost library
Public Types | Public Member Functions | Related Functions | List of all members
boost::ui::basic_point< T > Class Template Reference

2D point data structure with custom coordinates type More...

Inheritance diagram for boost::ui::basic_point< T >:
[legend]

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.
 
x () const
 Returns x coordinate.
 
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_pointoperator+= (const basic_size< T > &other)
 Arithmetic operation.
 
basic_pointoperator-= (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.
 

Detailed Description

template<class T>
class boost::ui::basic_point< T >

2D point data structure with custom coordinates type

See also
Point (Wikipedia)

The documentation for this class was generated from the following files: