Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

point Class Reference

simple class for handling both 2D position and size More...

#include <rect.h>

List of all members.

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.


Detailed Description

simple class for handling both 2D position and size

This small class is an helper for position and size values.

Definition at line 33 of file rect.h.


Constructor & Destructor Documentation

point::point   throw () [inline]
 

Definition at line 38 of file rect.h.

Referenced by is_origin(), operator+(), and operator-().

point::point const point &    p throw () [inline]
 

Definition at line 39 of file rect.h.

point::point int    x,
int    y
throw () [inline, explicit]
 

Definition at line 40 of file rect.h.


Member Function Documentation

int& point::get_x   throw () [inline]
 

Definition at line 45 of file rect.h.

References _x.

const int& point::get_x   const throw () [inline]
 

Definition at line 43 of file rect.h.

References _x.

Referenced by blitter::block_copy(), rect::left(), operator<<(), rect::right(), and rect::width().

int& point::get_y   throw () [inline]
 

Definition at line 46 of file rect.h.

References _y.

const int& point::get_y   const throw () [inline]
 

Definition at line 44 of file rect.h.

References _y.

Referenced by blitter::block_copy(), rect::bottom(), rect::height(), operator<<(), and rect::top().

bool point::is_origin   const throw () [inline]
 

Definition at line 51 of file rect.h.

References point().

point point::operator+ const point &    p const throw () [inline]
 

Definition at line 47 of file rect.h.

References _x, _y, and point().

point& point::operator+= const point &    p throw () [inline]
 

Definition at line 49 of file rect.h.

References _x, and _y.

point point::operator- const point &    p const throw () [inline]
 

Definition at line 48 of file rect.h.

References _x, _y, and point().

point& point::operator-= const point &    p throw () [inline]
 

Definition at line 50 of file rect.h.

References _x, and _y.

point& point::operator= const point &    p throw () [inline]
 

Definition at line 41 of file rect.h.

References _x, and _y.

bool point::operator== const point &    p const throw () [inline]
 

Definition at line 42 of file rect.h.

References _x, and _y.

void point::set int    x,
int    y
throw () [inline]
 

Definition at line 52 of file rect.h.

References _x, and _y.


Member Data Documentation

int point::_x [private]
 

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().

int point::_y [private]
 

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().


The documentation for this class was generated from the following file:
Generated on Fri Aug 9 22:54:32 2002 for san_player by doxygen1.2.16