#include <rect.h>
Public Methods | |
point () throw () | |
point (const point &p) throw () | |
point (int x, int y) throw () | |
point & | operator= (const point &p) throw () |
bool | operator== (const point &p) const throw () |
const int & | get_x () const throw () |
const int & | get_y () const throw () |
int & | get_x () throw () |
int & | get_y () throw () |
point | operator+ (const point &p) const throw () |
point | operator- (const point &p) const throw () |
point & | operator+= (const point &p) throw () |
point & | operator-= (const point &p) throw () |
bool | is_origin () const throw () |
void | set (int x, int y) throw () |
Private Attributes | |
int | _x |
The horizontal part of the point. | |
int | _y |
The vertical part of the point. |
This small class is an helper for position and size values.
Definition at line 33 of file rect.h.
|
|
|
|
|
|
|
Definition at line 45 of file rect.h. References _x. |
|
Definition at line 43 of file rect.h. References _x. Referenced by blitter::block_copy(), rect::left(), operator<<(), rect::right(), and rect::width(). |
|
Definition at line 46 of file rect.h. References _y. |
|
Definition at line 44 of file rect.h. References _y. Referenced by blitter::block_copy(), rect::bottom(), rect::height(), operator<<(), and rect::top(). |
|
Definition at line 51 of file rect.h. References point(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The horizontal part of the point.
Definition at line 35 of file rect.h. Referenced by get_x(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), and set(). |
|
The vertical part of the point.
Definition at line 36 of file rect.h. Referenced by get_y(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), and set(). |