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 Position {
00061     START_POSITION,
00062     TOP_CENTER=START_POSITION,
00063     TOP_RIGHT,
00064     CENTER_RIGHT,
00065     BOTTOM_RIGHT,
00066     BOTTOM_CENTER,
00067     BOTTOM_LEFT,
00068     CENTER_LEFT,
00069     TOP_LEFT,
00070     END_POSITION,
00071   } Position;
00072 
00073   typedef enum Axis {
00074     X_AXIS = 1<<0,
00075     Y_AXIS = 1<<1,
00076   } Axis;
00077 
00078   typedef enum Handles {
00079     NO_HANDLES = 0,
00080     CORNER_HANDLES = 1<<0,
00081     ALL_HANDLES = 1<<1,
00082   } Handles;
00083 
00084 }
00085 
00086 #endif

Generated on Sun Mar 11 10:01:28 2007 by  doxygen 1.5.1