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

2D rectangle plane figure data structure with custom coordinates type More...

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

Public Types

typedef T value_type
 Type of coordinates.
 

Public Member Functions

 basic_rect ()
 Constructs rectangle with empty coordinates.
 
x () const
 Returns x coordinate.
 
y () const
 Returns y coordinate.
 
width () const
 Returns width.
 
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.
 

Detailed Description

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

2D rectangle plane figure data structure with custom coordinates type

See also
Rectangle (Wikipedia)

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