Subversion Repositories Kolibri OS

Rev

Rev 1892 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1892 Rev 3959
Line 38... Line 38...
38
#ifndef _CAIRO_ERROR_PRIVATE_H_
38
#ifndef _CAIRO_ERROR_PRIVATE_H_
39
#define _CAIRO_ERROR_PRIVATE_H_
39
#define _CAIRO_ERROR_PRIVATE_H_
Line 40... Line 40...
40
 
40
 
41
#include "cairo.h"
41
#include "cairo.h"
-
 
42
#include "cairo-compiler-private.h"
-
 
43
#include "cairo-types-private.h"
-
 
44
 
Line 42... Line 45...
42
#include "cairo-compiler-private.h"
45
#include 
Line -... Line 46...
-
 
46
 
-
 
47
CAIRO_BEGIN_DECLS
-
 
48
 
-
 
49
/* Sure wish C had a real enum type so that this would be distinct
-
 
50
 * from #cairo_status_t. Oh well, without that, I'll use this bogus 100
-
 
51
 * offset.  We want to keep it fit in int8_t as the compiler may choose
-
 
52
 * that for #cairo_status_t */
-
 
53
enum _cairo_int_status {
-
 
54
    CAIRO_INT_STATUS_SUCCESS = 0,
-
 
55
 
-
 
56
    CAIRO_INT_STATUS_NO_MEMORY,
-
 
57
    CAIRO_INT_STATUS_INVALID_RESTORE,
-
 
58
    CAIRO_INT_STATUS_INVALID_POP_GROUP,
-
 
59
    CAIRO_INT_STATUS_NO_CURRENT_POINT,
-
 
60
    CAIRO_INT_STATUS_INVALID_MATRIX,
-
 
61
    CAIRO_INT_STATUS_INVALID_STATUS,
-
 
62
    CAIRO_INT_STATUS_NULL_POINTER,
-
 
63
    CAIRO_INT_STATUS_INVALID_STRING,
-
 
64
    CAIRO_INT_STATUS_INVALID_PATH_DATA,
-
 
65
    CAIRO_INT_STATUS_READ_ERROR,
-
 
66
    CAIRO_INT_STATUS_WRITE_ERROR,
-
 
67
    CAIRO_INT_STATUS_SURFACE_FINISHED,
-
 
68
    CAIRO_INT_STATUS_SURFACE_TYPE_MISMATCH,
-
 
69
    CAIRO_INT_STATUS_PATTERN_TYPE_MISMATCH,
-
 
70
    CAIRO_INT_STATUS_INVALID_CONTENT,
-
 
71
    CAIRO_INT_STATUS_INVALID_FORMAT,
-
 
72
    CAIRO_INT_STATUS_INVALID_VISUAL,
-
 
73
    CAIRO_INT_STATUS_FILE_NOT_FOUND,
-
 
74
    CAIRO_INT_STATUS_INVALID_DASH,
-
 
75
    CAIRO_INT_STATUS_INVALID_DSC_COMMENT,
-
 
76
    CAIRO_INT_STATUS_INVALID_INDEX,
-
 
77
    CAIRO_INT_STATUS_CLIP_NOT_REPRESENTABLE,
-
 
78
    CAIRO_INT_STATUS_TEMP_FILE_ERROR,
-
 
79
    CAIRO_INT_STATUS_INVALID_STRIDE,
-
 
80
    CAIRO_INT_STATUS_FONT_TYPE_MISMATCH,
-
 
81
    CAIRO_INT_STATUS_USER_FONT_IMMUTABLE,
-
 
82
    CAIRO_INT_STATUS_USER_FONT_ERROR,
-
 
83
    CAIRO_INT_STATUS_NEGATIVE_COUNT,
-
 
84
    CAIRO_INT_STATUS_INVALID_CLUSTERS,
-
 
85
    CAIRO_INT_STATUS_INVALID_SLANT,
-
 
86
    CAIRO_INT_STATUS_INVALID_WEIGHT,
-
 
87
    CAIRO_INT_STATUS_INVALID_SIZE,
-
 
88
    CAIRO_INT_STATUS_USER_FONT_NOT_IMPLEMENTED,
-
 
89
    CAIRO_INT_STATUS_DEVICE_TYPE_MISMATCH,
-
 
90
    CAIRO_INT_STATUS_DEVICE_ERROR,
-
 
91
    CAIRO_INT_STATUS_INVALID_MESH_CONSTRUCTION,
-
 
92
    CAIRO_INT_STATUS_DEVICE_FINISHED,
-
 
93
 
-
 
94
    CAIRO_INT_STATUS_LAST_STATUS,
-
 
95
 
-
 
96
    CAIRO_INT_STATUS_UNSUPPORTED = 100,
-
 
97
    CAIRO_INT_STATUS_DEGENERATE,
-
 
98
    CAIRO_INT_STATUS_NOTHING_TO_DO,
-
 
99
    CAIRO_INT_STATUS_FLATTEN_TRANSPARENCY,
-
 
100
    CAIRO_INT_STATUS_IMAGE_FALLBACK,
-
 
101
    CAIRO_INT_STATUS_ANALYZE_RECORDING_SURFACE_PATTERN,
-
 
102
};
43
 
103
 
44
CAIRO_BEGIN_DECLS
104
typedef enum _cairo_int_status cairo_int_status_t;
-
 
105
 
-
 
106
#define _cairo_status_is_error(status) \
-
 
107
    (status != CAIRO_STATUS_SUCCESS && status < CAIRO_STATUS_LAST_STATUS)
Line 45... Line 108...
45
 
108
 
46
#define _cairo_status_is_error(status) \
109
#define _cairo_int_status_is_error(status) \
Line 47... Line 110...
47
    (status != CAIRO_STATUS_SUCCESS && status <= CAIRO_STATUS_LAST_STATUS)
110
    (status != CAIRO_INT_STATUS_SUCCESS && status < CAIRO_INT_STATUS_LAST_STATUS)