# 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 //Actually, it is used now by the UserFontFace set_*_func() slots, which are public. murrayc.
    00030 typedef cairo_status_t ErrorStatus;
    00031 #endif //DOXYGEN_IGNORE_THIS
    00032
    00033
    00034 typedef enum
    00035 {
    00036     OPERATOR_CLEAR = CAIRO_OPERATOR_CLEAR,
    00037
    00038     OPERATOR_SOURCE = CAIRO_OPERATOR_SOURCE,
    00039     OPERATOR_OVER = CAIRO_OPERATOR_OVER,
    00040     OPERATOR_IN = CAIRO_OPERATOR_IN,
    00041     OPERATOR_OUT = CAIRO_OPERATOR_OUT,
    00042     OPERATOR_ATOP = CAIRO_OPERATOR_ATOP,
    00043
    00044     OPERATOR_DEST = CAIRO_OPERATOR_DEST,
    00045     OPERATOR_DEST_OVER = CAIRO_OPERATOR_DEST_OVER,
    00046     OPERATOR_DEST_IN = CAIRO_OPERATOR_DEST_IN,
    00047     OPERATOR_DEST_OUT = CAIRO_OPERATOR_DEST_OUT,
    00048     OPERATOR_DEST_ATOP = CAIRO_OPERATOR_DEST_ATOP,
    00049
    00050     OPERATOR_XOR = CAIRO_OPERATOR_XOR,
    00051     OPERATOR_ADD = CAIRO_OPERATOR_ADD,
    00052     OPERATOR_SATURATE = CAIRO_OPERATOR_SATURATE
    00053 } Operator;
    00054
    00055
    00056 typedef enum
    00057 {
    00058     ANTIALIAS_DEFAULT = CAIRO_ANTIALIAS_DEFAULT,
    00059     ANTIALIAS_NONE = CAIRO_ANTIALIAS_NONE,
    00060     ANTIALIAS_GRAY = CAIRO_ANTIALIAS_GRAY,
    00061     ANTIALIAS_SUBPIXEL = CAIRO_ANTIALIAS_SUBPIXEL
    00062 } Antialias;
    00063
    00064 typedef enum
    00065 {
    00066     FILL_RULE_WINDING = CAIRO_FILL_RULE_WINDING,
    00067     FILL_RULE_EVEN_ODD = CAIRO_FILL_RULE_EVEN_ODD
    00068 } FillRule;
    00069
    00070
    00071 typedef enum
    00072 {
    00073     LINE_CAP_BUTT = CAIRO_LINE_CAP_BUTT,
    00074     LINE_CAP_ROUND = CAIRO_LINE_CAP_ROUND,
    00075     LINE_CAP_SQUARE = CAIRO_LINE_CAP_SQUARE
    00076 } LineCap;
    00077
    00078
    00079 typedef enum
    00080 {
    00081     LINE_JOIN_MITER = CAIRO_LINE_JOIN_MITER,
    00082     LINE_JOIN_ROUND = CAIRO_LINE_JOIN_ROUND,
    00083     LINE_JOIN_BEVEL = CAIRO_LINE_JOIN_BEVEL
    00084 } LineJoin;
    00085
    00086
    00087 typedef enum
    00088 {
    00089   FONT_SLANT_NORMAL = CAIRO_FONT_SLANT_NORMAL,
    00090   FONT_SLANT_ITALIC = CAIRO_FONT_SLANT_ITALIC,
    00091   FONT_SLANT_OBLIQUE = CAIRO_FONT_SLANT_OBLIQUE
    00092 } FontSlant;
    00093
    00094 typedef enum
    00095 {
    00096   FONT_WEIGHT_NORMAL = CAIRO_FONT_WEIGHT_NORMAL,
    00097   FONT_WEIGHT_BOLD = CAIRO_FONT_WEIGHT_BOLD
    00098 } FontWeight;
    00099
    00100
    00101 typedef enum
    00102 {
    00103     CONTENT_COLOR = CAIRO_CONTENT_COLOR,
    00104     CONTENT_ALPHA = CAIRO_CONTENT_ALPHA,
    00105     CONTENT_COLOR_ALPHA = CAIRO_CONTENT_COLOR_ALPHA
    00106 } Content;
    00107
    00108
    00109 typedef enum
    00110 {
    00111     FORMAT_ARGB32 = CAIRO_FORMAT_ARGB32,
    00112     FORMAT_RGB24 = CAIRO_FORMAT_RGB24,
    00113     FORMAT_A8 = CAIRO_FORMAT_A8,
    00114     FORMAT_A1 = CAIRO_FORMAT_A1,
    00115     FORMAT_RGB16_565 = CAIRO_FORMAT_RGB16_565 /* @< @deprecated This format value is deprecated. It has never been properly implemented in cairo and is unnecessary. */
    00116 } Format;
    00117
    00118
    00119 typedef enum
    00120 {
    00121     EXTEND_NONE = CAIRO_EXTEND_NONE,
    00122     EXTEND_REPEAT = CAIRO_EXTEND_REPEAT,
    00123     EXTEND_REFLECT = CAIRO_EXTEND_REFLECT,
    00124     EXTEND_PAD = CAIRO_EXTEND_PAD
    00125 } Extend;
    00126
    00127
    00128 typedef enum
    00129 {
    00130     FILTER_FAST = CAIRO_FILTER_FAST,
    00131     FILTER_GOOD = CAIRO_FILTER_GOOD,
    00132     FILTER_BEST = CAIRO_FILTER_BEST,
    00133     FILTER_NEAREST = CAIRO_FILTER_NEAREST,
    00134     FILTER_BILINEAR = CAIRO_FILTER_BILINEAR,
    00135     FILTER_GAUSSIAN = CAIRO_FILTER_GAUSSIAN
    00136 } Filter;
    00137
    00143 typedef enum
    00144 {
    00145     SUBPIXEL_ORDER_DEFAULT = CAIRO_SUBPIXEL_ORDER_DEFAULT,
    00146     SUBPIXEL_ORDER_RGB = CAIRO_SUBPIXEL_ORDER_RGB,
    00147     SUBPIXEL_ORDER_BGR = CAIRO_SUBPIXEL_ORDER_BGR,
    00148     SUBPIXEL_ORDER_VRGB = CAIRO_SUBPIXEL_ORDER_VRGB,
    00149     SUBPIXEL_ORDER_VBGR = CAIRO_SUBPIXEL_ORDER_VBGR
    00150 } SubpixelOrder;
    00151
    00152
    00162 typedef enum
    00163 {
    00164     HINT_STYLE_DEFAULT = CAIRO_HINT_STYLE_DEFAULT,
    00165     HINT_STYLE_NONE = CAIRO_HINT_STYLE_NONE,
    00166     HINT_STYLE_SLIGHT = CAIRO_HINT_STYLE_SLIGHT,
    00167     HINT_STYLE_MEDIUM = CAIRO_HINT_STYLE_MEDIUM,
    00168     HINT_STYLE_FULL = CAIRO_HINT_STYLE_FULL
    00169 } HintStyle;
    00170
    00171
    00178 typedef enum
    00179 {
    00180     HINT_METRICS_DEFAULT = CAIRO_HINT_METRICS_DEFAULT,
    00182     HINT_METRICS_OFF = CAIRO_HINT_METRICS_OFF,
    00184     HINT_METRICS_ON = CAIRO_HINT_METRICS_ON
    00186 } HintMetrics;
    00187
    00188 typedef enum
    00189 {
    00190     SURFACE_TYPE_IMAGE = CAIRO_SURFACE_TYPE_IMAGE,
    00191     SURFACE_TYPE_PDF = CAIRO_SURFACE_TYPE_PDF,
    00192     SURFACE_TYPE_PS = CAIRO_SURFACE_TYPE_PS,
    00193     SURFACE_TYPE_XLIB = CAIRO_SURFACE_TYPE_XLIB,
    00194     SURFACE_TYPE_XCB = CAIRO_SURFACE_TYPE_XCB,
    00195     SURFACE_TYPE_GLITZ = CAIRO_SURFACE_TYPE_GLITZ,
    00196     SURFACE_TYPE_QUARTZ = CAIRO_SURFACE_TYPE_QUARTZ,
    00197     SURFACE_TYPE_WIN32 = CAIRO_SURFACE_TYPE_WIN32,
    00198     SURFACE_TYPE_BEOS = CAIRO_SURFACE_TYPE_BEOS,
    00199     SURFACE_TYPE_DIRECTFB = CAIRO_SURFACE_TYPE_DIRECTFB,
    00200     SURFACE_TYPE_SVG = CAIRO_SURFACE_TYPE_SVG,
    00201     SURFACE_TYPE_OS2 = CAIRO_SURFACE_TYPE_OS2,
    00202     SURFACE_TYPE_WIN32_PRINTING = CAIRO_SURFACE_TYPE_WIN32_PRINTING,
    00203     SURFACE_TYPE_QUARTZ_IMAGE = CAIRO_SURFACE_TYPE_QUARTZ_IMAGE
    00204 } SurfaceType;
    00205
    00206 typedef enum
    00207 {
    00208     PATTERN_TYPE_SOLID = CAIRO_PATTERN_TYPE_SOLID,
    00209     PATTERN_TYPE_SURFACE = CAIRO_PATTERN_TYPE_SURFACE,
    00210     PATTERN_TYPE_LINEAR = CAIRO_PATTERN_TYPE_LINEAR,
    00211     PATTERN_TYPE_RADIAL = CAIRO_PATTERN_TYPE_RADIAL
    00212 } PatternType;
    00213
    00214 typedef enum
    00215 {
    00216     FONT_TYPE_TOY = CAIRO_FONT_TYPE_TOY,
    00217     FONT_TYPE_FT = CAIRO_FONT_TYPE_FT,
    00218     FONT_TYPE_WIN32 = CAIRO_FONT_TYPE_WIN32,
    00219     FONT_TYPE_ATSUI = CAIRO_FONT_TYPE_QUARTZ,
    00220     FONT_TYPE_QUARTZ = CAIRO_FONT_TYPE_QUARTZ,
    00221     FONT_TYPE_USER = CAIRO_FONT_TYPE_USER
    00222 } FontType;
    00223
    00228 typedef enum
    00229 {
    00230     TEXT_CLUSTER_FLAG_BACKWARD = CAIRO_TEXT_CLUSTER_FLAG_BACKWARD
    00231 } TextClusterFlags;
    00232
    00233 } // namespace Cairo
    00234
    00235 #endif //__CAIROMM_ENUMS_H
    00236
    00237 // vim: ts=2 sw=2 et