"Fossies" - the Fresh Open Source Software Archive

Member "mapgenerator-1.1.2/src/ocircle.h" (26 Oct 2003, 1615 Bytes) of package /linux/www/old/mapgenerator-1.1.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ocircle.h" see the Fossies "Dox" file reference documentation.

    1 /***************************************************************************
    2                           ocircle.h  -  description
    3                              -------------------
    4     begin                : Mon Aug 13 2001
    5     copyright            : (C) 2001 by Gabriel Huber
    6     email                : Gabriel-Huber@gmx.de
    7  ***************************************************************************/
    8 
    9 /***************************************************************************
   10  *                                                                         *
   11  *   This program is free software; you can redistribute it and/or modify  *
   12  *   it under the terms of the GNU General Public License as published by  *
   13  *   the Free Software Foundation; either version 2 of the License, or     *
   14  *   (at your option) any later version.                                   *
   15  *                                                                         *
   16  ***************************************************************************/
   17 
   18 #ifndef OCIRCLE_H
   19 #define OCIRCLE_H
   20 
   21 #include "objects.h"
   22 #include <math.h>
   23 
   24 /**
   25   *@author Gabriel Huber
   26   */
   27 
   28 #ifndef enum_Objects
   29 #define enum_Objects
   30 enum {objCircle,objSquare,objPolygon,objSelector};
   31 #endif
   32 
   33 class oCircle : public Objects  {
   34 private:
   35     int cx;
   36     int cy;
   37     int cr;
   38 public:
   39     oCircle(int x,int y,int r,const std::string & alt="", const std::string & oth="");
   40     ~oCircle();
   41     void draw(int xpos,int ypos);
   42     void add_size(int x,int y);
   43     int select(int x,int y);
   44     void save(htmlfile *html);
   45     int type(){return objCircle;}
   46     void move(int x,int y);
   47     void resize(int x,int y);
   48 };
   49 
   50 #endif