1 /********************************************************************************
2 *                                                                               *
3 *                             P o i n t    C l a s s                            *
4 *                                                                               *
5 *********************************************************************************
6 * Copyright (C) 1994,2005 by Jeroen van der Zijp.   All Rights Reserved.        *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or                 *
9 * modify it under the terms of the GNU Lesser General Public                    *
10 * License as published by the Free Software Foundation; either                  *
11 * version 2.1 of the License, or (at your option) any later version.            *
12 *                                                                               *
13 * This library is distributed in the hope that it will be useful,               *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU             *
16 * Lesser General Public License for more details.                               *
17 *                                                                               *
18 * You should have received a copy of the GNU Lesser General Public              *
19 * License along with this library; if not, write to the Free Software           *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
21 *********************************************************************************
22 * $Id: FXPoint.cpp,v 1.11 2005/01/16 16:06:07 fox Exp $                         *
23 ********************************************************************************/
24 #include "xincs.h"
25 #include "fxver.h"
26 #include "fxdefs.h"
27 #include "fxpriv.h"
28 #include "FXHash.h"
29 #include "FXStream.h"
30 #include "FXSize.h"
31 #include "FXPoint.h"
32 
33 using namespace FX;
34 
35 /*******************************************************************************/
36 
37 namespace FX {
38 
39 // Save object to a stream
operator <<(FXStream & store,const FXPoint & p)40 FXStream& operator<<(FXStream& store,const FXPoint& p){
41   store << p.x << p.y;
42   return store;
43   }
44 
45 
46 // Load object from a stream
operator >>(FXStream & store,FXPoint & p)47 FXStream& operator>>(FXStream& store,FXPoint& p){
48   store >> p.x >> p.y;
49   return store;
50   }
51 
52 }
53