enums.h

Go to the documentation of this file.
00001 /* Copyright (C) 2005 The cairomm Development Team
00002  *
00003  * This library is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU Library General Public
00005  * License as published by the Free Software Foundation; either
00006  * version 2 of the License, or (at your option) any later version.
00007  *
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Library General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Library General Public
00014  * License along with this library; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00016  * 02110-1301, USA.
00017  */
00018 
00019 #ifndef __CAIROMM_ENUMS_H
00020 #define __CAIROMM_ENUMS_H
00021 
00022 #include <cairo.h>
00023 
00024 namespace Cairo
00025 {
00026 
00027 #ifndef DOXYGEN_IGNORE_THIS
00028 //This is only used internally, but it must be in a public header because we inline some methods.
00029 typedef cairo_status_t ErrorStatus;
00030 #endif //DOXYGEN_IGNORE_THIS
00031 
00032 
00033 typedef enum
00034 {
00035     OPERATOR_CLEAR = CAIRO_OPERATOR_CLEAR,
00036 
00037     OPERATOR_SOURCE = CAIRO_OPERATOR_SOURCE,
00038     OPERATOR_OVER = CAIRO_OPERATOR_OVER,
00039     OPERATOR_IN = CAIRO_OPERATOR_IN,
00040     OPERATOR_OUT = CAIRO_OPERATOR_OUT,
00041     OPERATOR_ATOP = CAIRO_OPERATOR_ATOP,
00042 
00043     OPERATOR_DEST = CAIRO_OPERATOR_DEST,
00044     OPERATOR_DEST_OVER = CAIRO_OPERATOR_DEST_OVER,
00045     OPERATOR_DEST_IN = CAIRO_OPERATOR_DEST_IN,
00046     OPERATOR_DEST_OUT = CAIRO_OPERATOR_DEST_OUT,
00047     OPERATOR_DEST_ATOP = CAIRO_OPERATOR_DEST_ATOP,
00048 
00049     OPERATOR_XOR = CAIRO_OPERATOR_XOR,
00050     OPERATOR_ADD = CAIRO_OPERATOR_ADD,
00051     OPERATOR_SATURATE = CAIRO_OPERATOR_SATURATE
00052 } Operator;
00053 
00054 
00055 typedef enum
00056 {
00057     ANTIALIAS_DEFAULT = CAIRO_ANTIALIAS_DEFAULT,
00058     ANTIALIAS_NONE = CAIRO_ANTIALIAS_NONE,
00059     ANTIALIAS_GRAY = CAIRO_ANTIALIAS_GRAY,
00060     ANTIALIAS_SUBPIXEL = CAIRO_ANTIALIAS_SUBPIXEL
00061 } Antialias;
00062 
00063 typedef enum
00064 {
00065     FILL_RULE_WINDING = CAIRO_FILL_RULE_WINDING,
00066     FILL_RULE_EVEN_ODD = CAIRO_FILL_RULE_EVEN_ODD
00067 } FillRule;
00068 
00069 
00070 typedef enum
00071 {
00072     LINE_CAP_BUTT = CAIRO_LINE_CAP_BUTT,
00073     LINE_CAP_ROUND = CAIRO_LINE_CAP_ROUND,
00074     LINE_CAP_SQUARE = CAIRO_LINE_CAP_SQUARE
00075 } LineCap;
00076 
00077 
00078 typedef enum
00079 {
00080     LINE_JOIN_MITER = CAIRO_LINE_JOIN_MITER,
00081     LINE_JOIN_ROUND = CAIRO_LINE_JOIN_ROUND,
00082     LINE_JOIN_BEVEL = CAIRO_LINE_JOIN_BEVEL
00083 } LineJoin;
00084 
00085 
00086 typedef enum
00087 {
00088   FONT_SLANT_NORMAL = CAIRO_FONT_SLANT_NORMAL,
00089   FONT_SLANT_ITALIC = CAIRO_FONT_SLANT_ITALIC,
00090   FONT_SLANT_OBLIQUE = CAIRO_FONT_SLANT_OBLIQUE
00091 } FontSlant;
00092 
00093 typedef enum
00094 {
00095   FONT_WEIGHT_NORMAL = CAIRO_FONT_WEIGHT_NORMAL,
00096   FONT_WEIGHT_BOLD = CAIRO_FONT_WEIGHT_BOLD
00097 } FontWeight;
00098 
00099 
00100 typedef enum
00101 {
00102     CONTENT_COLOR = CAIRO_CONTENT_COLOR,
00103     CONTENT_ALPHA = CAIRO_CONTENT_ALPHA,
00104     CONTENT_COLOR_ALPHA = CAIRO_CONTENT_COLOR_ALPHA
00105 } Content;
00106 
00107 
00108 typedef enum
00109 {
00110     FORMAT_ARGB32 = CAIRO_FORMAT_ARGB32,
00111     FORMAT_RGB24 = CAIRO_FORMAT_RGB24,
00112     FORMAT_A8 = CAIRO_FORMAT_A8,
00113     FORMAT_A1 = CAIRO_FORMAT_A1,
00114     FORMAT_RGB16_565 = CAIRO_FORMAT_RGB16_565 /* @< @deprecated This format value is deprecated. It has never been properly implemented in cairo and is unnecessary. */
00115 } Format;
00116 
00117 
00118 typedef enum
00119 {
00120     EXTEND_NONE = CAIRO_EXTEND_NONE,
00121     EXTEND_REPEAT = CAIRO_EXTEND_REPEAT,
00122     EXTEND_REFLECT = CAIRO_EXTEND_REFLECT,
00123     EXTEND_PAD = CAIRO_EXTEND_PAD
00124 } Extend;
00125 
00126 
00127 typedef enum
00128 {
00129     FILTER_FAST = CAIRO_FILTER_FAST,
00130     FILTER_GOOD = CAIRO_FILTER_GOOD,
00131     FILTER_BEST = CAIRO_FILTER_BEST,
00132     FILTER_NEAREST = CAIRO_FILTER_NEAREST,
00133     FILTER_BILINEAR = CAIRO_FILTER_BILINEAR,
00134     FILTER_GAUSSIAN = CAIRO_FILTER_GAUSSIAN
00135 } Filter;
00136 
00137 typedef enum
00138 {
00139     SUBPIXEL_ORDER_DEFAULT = CAIRO_SUBPIXEL_ORDER_DEFAULT,
00140     SUBPIXEL_ORDER_RGB = CAIRO_SUBPIXEL_ORDER_RGB,
00141     SUBPIXEL_ORDER_BGR = CAIRO_SUBPIXEL_ORDER_BGR,
00142     SUBPIXEL_ORDER_VRGB = CAIRO_SUBPIXEL_ORDER_VRGB,
00143     SUBPIXEL_ORDER_VBGR = CAIRO_SUBPIXEL_ORDER_VBGR
00144 } SubpixelOrder;
00145 
00146 
00147 typedef enum
00148 {
00149     HINT_STYLE_DEFAULT = CAIRO_HINT_STYLE_DEFAULT,
00150     HINT_STYLE_NONE = CAIRO_HINT_STYLE_NONE,
00151     HINT_STYLE_SLIGHT = CAIRO_HINT_STYLE_SLIGHT,
00152     HINT_STYLE_MEDIUM = CAIRO_HINT_STYLE_MEDIUM,
00153     HINT_STYLE_FULL = CAIRO_HINT_STYLE_FULL
00154 } HintStyle;
00155 
00156 
00157 typedef enum
00158 {
00159     HINT_METRICS_DEFAULT = CAIRO_HINT_METRICS_DEFAULT,
00160     HINT_METRICS_OFF = CAIRO_HINT_METRICS_OFF,
00161     HINT_METRICS_ON = CAIRO_HINT_METRICS_ON
00162 } HintMetrics;
00163 
00164 typedef enum
00165 {
00166     SURFACE_TYPE_IMAGE = CAIRO_SURFACE_TYPE_IMAGE,
00167     SURFACE_TYPE_PDF = CAIRO_SURFACE_TYPE_PDF,
00168     SURFACE_TYPE_PS = CAIRO_SURFACE_TYPE_PS,
00169     SURFACE_TYPE_XLIB = CAIRO_SURFACE_TYPE_XLIB,
00170     SURFACE_TYPE_XCB = CAIRO_SURFACE_TYPE_XCB,
00171     SURFACE_TYPE_GLITZ = CAIRO_SURFACE_TYPE_GLITZ,
00172     SURFACE_TYPE_QUARTZ = CAIRO_SURFACE_TYPE_QUARTZ,
00173     SURFACE_TYPE_WIN32 = CAIRO_SURFACE_TYPE_WIN32,
00174     SURFACE_TYPE_BEOS = CAIRO_SURFACE_TYPE_BEOS,
00175     SURFACE_TYPE_DIRECTFB = CAIRO_SURFACE_TYPE_DIRECTFB,
00176     SURFACE_TYPE_SVG = CAIRO_SURFACE_TYPE_SVG,
00177     SURFACE_TYPE_OS2 = CAIRO_SURFACE_TYPE_OS2,
00178     SURFACE_TYPE_WIN32_PRINTING = CAIRO_SURFACE_TYPE_WIN32_PRINTING,
00179     SURFACE_TYPE_QUARTZ_IMAGE = CAIRO_SURFACE_TYPE_QUARTZ_IMAGE
00180 } SurfaceType;
00181 
00182 typedef enum
00183 {
00184     PATTERN_TYPE_SOLID = CAIRO_PATTERN_TYPE_SOLID,
00185     PATTERN_TYPE_SURFACE = CAIRO_PATTERN_TYPE_SURFACE,
00186     PATTERN_TYPE_LINEAR = CAIRO_PATTERN_TYPE_LINEAR,
00187     PATTERN_TYPE_RADIAL = CAIRO_PATTERN_TYPE_RADIAL
00188 } PatternType;
00189 
00190 typedef enum
00191 {
00192     FONT_TYPE_TOY = CAIRO_FONT_TYPE_TOY,
00193     FONT_TYPE_FT = CAIRO_FONT_TYPE_FT,
00194     FONT_TYPE_WIN32 = CAIRO_FONT_TYPE_WIN32,
00195     FONT_TYPE_ATSUI = CAIRO_FONT_TYPE_QUARTZ, 
00196     FONT_TYPE_QUARTZ = CAIRO_FONT_TYPE_QUARTZ
00197 } FontType;
00198 
00199 } // namespace Cairo
00200 
00201 #endif //__CAIROMM_ENUMS_H
00202 
00203 // vim: ts=2 sw=2 et

Generated on Thu Sep 4 21:57:13 2008 for cairomm by  doxygen 1.5.5