papyrus logo

enums.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Rick L. Vinyard, Jr.                            *
00003  *   rvinyard@cs.nmsu.edu                                                  *
00004  *                                                                         *
00005  *   This file is part of the papyrus library.                             *
00006  *                                                                         *
00007  *   papyrus is free software; you can redistribute it and/or modify       *
00008  *   it under the terms of the GNU Lesser General Public License           *
00009  *   version 3.0 as published by the Free Software Foundation.             *
00010  *                                                                         *
00011  *   papyrus is distributed in the hope that it will be useful,            *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU Lesser General Public License version 3.0 for more details.       *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Lesser General Public      *
00017  *   License along with the papyrus library. If not, see                   *
00018  *   <http://www.gnu.org/licenses/>.                                       *
00019  ***************************************************************************/
00020 #ifndef PAPYRUSENUMS_H
00021 #define PAPYRUSENUMS_H
00022 
00023 namespace Papyrus
00024 {
00025 
00033   typedef enum SelectionMode {
00034     SELECT_PRESS = 1 << 0,   
00035     SELECT_RELEASE = 1 << 1,   
00036     SELECT_FOLLOW = 1 << 2,   
00037   } SelectionMode;
00038 
00039   typedef enum AffineTransform {
00040     TRANSLATE_X = 1 << 0,
00041     TRANSLATE_Y = 1 << 1,
00042     SCALE_X = 1 << 2,
00043     SCALE_Y = 1 << 3,
00044     ROTATE = 1 << 4,
00045     SKEW_X = 1 << 5,
00046     SKEW_Y = 1 << 6,
00047   } AffineTransform;
00048 
00049   enum {
00050     FILL = 1<<0,
00051     STROKE = 1<<1
00052   };
00053 
00054   typedef enum Side {
00055     TOP = 1<<0,
00056     RIGHT = 1<<1,
00057     BOTTOM = 1<<2,
00058     LEFT = 1<<3,
00059   } Side;
00060 
00061   typedef enum Position {
00062     START_POSITION,
00063     TOP_CENTER=START_POSITION,
00064     TOP_RIGHT,
00065     CENTER_RIGHT,
00066     BOTTOM_RIGHT,
00067     BOTTOM_CENTER,
00068     BOTTOM_LEFT,
00069     CENTER_LEFT,
00070     TOP_LEFT,
00071     END_POSITION,
00072   } Position;
00073 
00074   typedef enum Axis {
00075     X_AXIS = 1<<0,
00076     Y_AXIS = 1<<1,
00077   } Axis;
00078 
00079   typedef enum Handles {
00080     NO_HANDLES = 0,
00081     CORNER_HANDLES = 1<<0,
00082     ALL_HANDLES = 1<<1,
00083   } Handles;
00084 
00085   typedef enum ScrollAnchor {
00086     SCROLL_ANCHOR_CENTER,
00087     SCROLL_ANCHOR_TOP_LEFT,
00088     SCROLL_ANCHOR_TOP_RIGHT,
00089     SCROLL_ANCHOR_BOTTOM_LEFT,
00090     SCROLL_ANCHOR_BOTTOM_RIGHT
00091   } ScrollAnchor;
00092 
00093   typedef enum PathElementType {
00094     PATH_UNDEFINED,
00095     PATH_MOVETO,
00096     PATH_REL_MOVETO,
00097     PATH_CLOSE,
00098     PATH_LINETO,
00099     PATH_REL_LINETO,
00100     PATH_HORIZONTAL_LINETO,
00101     PATH_REL_HORIZONTAL_LINETO,
00102     PATH_VERTICAL_LINETO,
00103     PATH_REL_VERTICAL_LINETO,
00104     PATH_CURVETO,
00105     PATH_REL_CURVETO,
00106     PATH_SMOOTH_CURVETO,
00107     PATH_REL_SMOOTH_CURVETO,
00108     PATH_QUADRATIC_BEZIER_CURVETO,
00109     PATH_REL_QUADRATIC_BEZIER_CURVETO,
00110     PATH_SMOOTH_QUADRATIC_BEZIER_CURVETO,
00111     PATH_REL_SMOOTH_QUADRATIC_BEZIER_CURVETO,
00112     PATH_ELIPTICAL_ARC,
00113     PATH_REL_ELIPTICAL_ARC,
00114   } PathElementType;
00115 
00116   typedef enum Units {
00117     UNIT_PIXEL,
00118     UNIT_POINTS,
00119     UNIT_INCH,
00120     UNIT_MM,
00121   } Units;
00122 
00123   typedef enum DegRad {
00124     DEGREES,
00125     RADIANS,
00126   } DegRad;
00127 
00128   typedef enum MarkerPosition {
00129     START_MARKER,
00130     VERTEX_MARKER,
00131     END_MARKER
00132   } MarkerPosition;
00133 
00134   typedef enum ExtentsPerformance {
00135     EXTENTS_QUICK=1,
00136     EXTENTS_PRECISE,
00137   } ExtentsPerformance;
00138 
00139   typedef enum OverUnder {
00140     OVER=1,
00141     UNDER,
00142   } OverUnder;
00143   
00149   typedef enum FrozenThawed {
00150     THAWED=0,
00151     FROZEN=1
00152   } FrozenThawed;
00153   
00154 }
00155 
00156 #endif

Generated on Wed Mar 18 12:34:03 2009 for papyrus by doxygen 1.5.7.1