Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Point.h

00001 /*
00002  * $Id: Fl_Point.h,v 1.1 2003/04/20 05:19:45 parshin Exp $
00003  *
00004  * Extended Fast Light Toolkit (EFLTK)
00005  * Copyright (C) 2002-2003 by EDE-Team
00006  * WWW: http://www.sourceforge.net/projects/ede
00007  *
00008  * Fast Light Toolkit (FLTK)
00009  * Copyright (C) 1998-2003 by Bill Spitzak and others.
00010  * WWW: http://www.fltk.org
00011  *
00012  * This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00013  * version 2. See COPYING for details.
00014  *
00015  * Author : Mikko Lahteenmaki
00016  * Email  : mikko@fltk.net
00017  *
00018  * Please report all bugs and problems to "efltk-bugs@fltk.net"
00019  *
00020  */
00021 
00022 #ifndef __FL_POINT_H__
00023 #define __FL_POINT_H__
00024 
00026 class FL_API Fl_Point
00027 {
00028     int x_, y_;
00029 public:
00030     Fl_Point() : x_(0), y_(0) {}
00031     Fl_Point(int x, int y) : x_(x), y_(y) {}
00032 
00033     Fl_Point &operator=( const Fl_Point &p ) { x(p.x()); y(p.y()); return *this; }
00034 
00035     int x() const { return x_; }
00036     int y() const { return y_; }
00037     void x(int x) { x_ = x; }
00038     void y(int y) { y_ = y; }
00039 };
00040 
00041 #endif

Generated on Thu Jul 31 15:33:44 2003 for eFLTK by doxygen1.2.15