enums.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Rick L. Vinyard, Jr.                            *
00003  *   rvinyard@cs.nmsu.edu                                                  *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Lesser General Public License as        *
00007  *   published by the Free Software Foundation version 2.1.                *
00008  *                                                                         *
00009  *   This program is distributed in the hope that it will be useful,       *
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012  *   GNU General Public License for more details.                          *
00013  *                                                                         *
00014  *   You should have received a copy of the GNU Lesser General Public      *
00015  *   License along with this library; if not, write to the                 *
00016  *   Free Software Foundation, Inc.,                                       *
00017  *   51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA              *
00018  ***************************************************************************/
00019 #ifndef PAPYRUSENUMS_H
00020 #define PAPYRUSENUMS_H
00021 
00022 namespace Papyrus
00023 {
00024 
00032   typedef enum SelectionMode {
00033     SELECT_PRESS = 1 << 0,   
00034     SELECT_RELEASE = 1 << 1,   
00035     SELECT_FOLLOW = 1 << 2,   
00036   } SelectionMode;
00037 
00038   typedef enum AffineTransform {
00039     TRANSLATE_X = 1 << 0,
00040     TRANSLATE_Y = 1 << 1,
00041     SCALE_X = 1 << 2,
00042     SCALE_Y = 1 << 3,
00043     ROTATE = 1 << 4,
00044     SKEW_X = 1 << 5,
00045     SKEW_Y = 1 << 6,
00046   } AffineTransform;
00047 
00048   enum {
00049     FILL = 1<<0,
00050     OUTLINE = 1<<1
00051   };
00052 
00053   typedef enum Side {
00054     TOP = 1<<0,
00055     RIGHT = 1<<1,
00056     BOTTOM = 1<<2,
00057     LEFT = 1<<3,
00058   } Side;
00059 
00060   typedef enum Axis {
00061     X_AXIS = 1<<0,
00062     Y_AXIS = 1<<1,
00063   } Axis;
00064   
00065   typedef enum Handles {
00066     NO_HANDLES = 0,
00067     CORNER_HANDLES = 1<<0,
00068     ALL_HANDLES = 1<<1,
00069   } Handles;
00070 
00071 }
00072 
00073 #endif

Generated on Sun Jan 7 22:53:57 2007 by  doxygen 1.5.1