Point Struct Reference

#include <framebuffer.h>

List of all members.

Public Member Functions

 Point ()
 Point (int ix, int iy)
bool operator== (const Point &p) const
 Point objects comparation. Same meaning of operator as for built-in types.
bool operator!= (const Point &p) const
 Negated Point objects comparation. Same meaning of operator as for built-in types.
Pointoperator+= (const Point &p)
 Add an another Point object. Same meaning of operator as for built-in types.
Pointoperator-= (const Point &p)
 Subtract an another Point object. Same meaning of operator as for built-in types.

Public Attributes

int x
 point position
int y
 point position


Detailed Description

2D point position

Definition at line 60 of file framebuffer.h.


Constructor & Destructor Documentation

Point::Point (  )  [inline]

Create Point (0, 0).

Definition at line 67 of file framebuffer.h.

Point::Point ( int  ix,
int  iy 
) [inline]

Create Point object with given position.

Parameters:
ix Object position.
iy Object position.

Definition at line 74 of file framebuffer.h.


Member Function Documentation

bool Point::operator== ( const Point p  )  const [inline]

Point objects comparation. Same meaning of operator as for built-in types.

Definition at line 77 of file framebuffer.h.

References x, and y.

bool Point::operator!= ( const Point p  )  const [inline]

Negated Point objects comparation. Same meaning of operator as for built-in types.

Definition at line 80 of file framebuffer.h.

References x, and y.

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

Add an another Point object. Same meaning of operator as for built-in types.

Definition at line 83 of file framebuffer.h.

References x, and y.

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

Subtract an another Point object. Same meaning of operator as for built-in types.

Definition at line 91 of file framebuffer.h.

References x, and y.


Member Data Documentation

int Point::x

point position

Definition at line 61 of file framebuffer.h.

Referenced by operator!=(), operator+=(), operator-=(), and operator==().

int Point::y

point position

Definition at line 62 of file framebuffer.h.

Referenced by operator!=(), operator+=(), operator-=(), and operator==().


The documentation for this struct was generated from the following file:
Generated on Wed Aug 29 00:01:04 2007 for GED 2006 by  doxygen 1.5.2