cairo_scan_converter_t *
_cairo_scan_converter_create_in_error (cairo_status_t status)
{ #define RETURN_NIL {\ static cairo_scan_converter_t nil;\
_cairo_nil_scan_converter_init (&nil, status);\ return &nil;\
} switch (status) { case CAIRO_STATUS_SUCCESS: case CAIRO_STATUS_LAST_STATUS:
ASSERT_NOT_REACHED; break; case CAIRO_STATUS_INVALID_RESTORE: RETURN_NIL; case CAIRO_STATUS_INVALID_POP_GROUP: RETURN_NIL; case CAIRO_STATUS_NO_CURRENT_POINT: RETURN_NIL; case CAIRO_STATUS_INVALID_MATRIX: RETURN_NIL; case CAIRO_STATUS_INVALID_STATUS: RETURN_NIL; case CAIRO_STATUS_NULL_POINTER: RETURN_NIL; case CAIRO_STATUS_INVALID_STRING: RETURN_NIL; case CAIRO_STATUS_INVALID_PATH_DATA: RETURN_NIL; case CAIRO_STATUS_READ_ERROR: RETURN_NIL; case CAIRO_STATUS_WRITE_ERROR: RETURN_NIL; case CAIRO_STATUS_SURFACE_FINISHED: RETURN_NIL; case CAIRO_STATUS_SURFACE_TYPE_MISMATCH: RETURN_NIL; case CAIRO_STATUS_PATTERN_TYPE_MISMATCH: RETURN_NIL; case CAIRO_STATUS_INVALID_CONTENT: RETURN_NIL; case CAIRO_STATUS_INVALID_FORMAT: RETURN_NIL; case CAIRO_STATUS_INVALID_VISUAL: RETURN_NIL; case CAIRO_STATUS_FILE_NOT_FOUND: RETURN_NIL; case CAIRO_STATUS_INVALID_DASH: RETURN_NIL; case CAIRO_STATUS_INVALID_DSC_COMMENT: RETURN_NIL; case CAIRO_STATUS_INVALID_INDEX: RETURN_NIL; case CAIRO_STATUS_CLIP_NOT_REPRESENTABLE: RETURN_NIL; case CAIRO_STATUS_TEMP_FILE_ERROR: RETURN_NIL; case CAIRO_STATUS_INVALID_STRIDE: RETURN_NIL; case CAIRO_STATUS_FONT_TYPE_MISMATCH: RETURN_NIL; case CAIRO_STATUS_USER_FONT_IMMUTABLE: RETURN_NIL; case CAIRO_STATUS_USER_FONT_ERROR: RETURN_NIL; case CAIRO_STATUS_NEGATIVE_COUNT: RETURN_NIL; case CAIRO_STATUS_INVALID_CLUSTERS: RETURN_NIL; case CAIRO_STATUS_INVALID_SLANT: RETURN_NIL; case CAIRO_STATUS_INVALID_WEIGHT: RETURN_NIL; case CAIRO_STATUS_NO_MEMORY: RETURN_NIL; case CAIRO_STATUS_INVALID_SIZE: RETURN_NIL; case CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED: RETURN_NIL; case CAIRO_STATUS_DEVICE_TYPE_MISMATCH: RETURN_NIL; case CAIRO_STATUS_DEVICE_ERROR: RETURN_NIL; case CAIRO_STATUS_INVALID_MESH_CONSTRUCTION: RETURN_NIL; case CAIRO_STATUS_DEVICE_FINISHED: RETURN_NIL; case CAIRO_STATUS_JBIG2_GLOBAL_MISSING: case CAIRO_STATUS_PNG_ERROR: case CAIRO_STATUS_FREETYPE_ERROR: case CAIRO_STATUS_WIN32_GDI_ERROR: case CAIRO_STATUS_TAG_ERROR: case CAIRO_STATUS_DWRITE_ERROR: case CAIRO_STATUS_SVG_FONT_ERROR: default: break;
}
status = CAIRO_STATUS_NO_MEMORY;
RETURN_NIL; #undef RETURN_NIL
}
static cairo_status_t
_cairo_nil_span_renderer_render_rows ( void *abstract_renderer, int y, int height, const cairo_half_open_span_t *coverages, unsigned num_coverages)
{
(void) y;
(void) height;
(void) coverages;
(void) num_coverages; return _cairo_span_renderer_status (abstract_renderer);
}
cairo_span_renderer_t *
_cairo_span_renderer_create_in_error (cairo_status_t status)
{ #define RETURN_NIL {\ static cairo_span_renderer_t nil;\
_cairo_nil_span_renderer_init (&nil, status);\ return &nil;\
} switch (status) { case CAIRO_STATUS_SUCCESS: case CAIRO_STATUS_LAST_STATUS:
ASSERT_NOT_REACHED; break; case CAIRO_STATUS_INVALID_RESTORE: RETURN_NIL; case CAIRO_STATUS_INVALID_POP_GROUP: RETURN_NIL; case CAIRO_STATUS_NO_CURRENT_POINT: RETURN_NIL; case CAIRO_STATUS_INVALID_MATRIX: RETURN_NIL; case CAIRO_STATUS_INVALID_STATUS: RETURN_NIL; case CAIRO_STATUS_NULL_POINTER: RETURN_NIL; case CAIRO_STATUS_INVALID_STRING: RETURN_NIL; case CAIRO_STATUS_INVALID_PATH_DATA: RETURN_NIL; case CAIRO_STATUS_READ_ERROR: RETURN_NIL; case CAIRO_STATUS_WRITE_ERROR: RETURN_NIL; case CAIRO_STATUS_SURFACE_FINISHED: RETURN_NIL; case CAIRO_STATUS_SURFACE_TYPE_MISMATCH: RETURN_NIL; case CAIRO_STATUS_PATTERN_TYPE_MISMATCH: RETURN_NIL; case CAIRO_STATUS_INVALID_CONTENT: RETURN_NIL; case CAIRO_STATUS_INVALID_FORMAT: RETURN_NIL; case CAIRO_STATUS_INVALID_VISUAL: RETURN_NIL; case CAIRO_STATUS_FILE_NOT_FOUND: RETURN_NIL; case CAIRO_STATUS_INVALID_DASH: RETURN_NIL; case CAIRO_STATUS_INVALID_DSC_COMMENT: RETURN_NIL; case CAIRO_STATUS_INVALID_INDEX: RETURN_NIL; case CAIRO_STATUS_CLIP_NOT_REPRESENTABLE: RETURN_NIL; case CAIRO_STATUS_TEMP_FILE_ERROR: RETURN_NIL; case CAIRO_STATUS_INVALID_STRIDE: RETURN_NIL; case CAIRO_STATUS_FONT_TYPE_MISMATCH: RETURN_NIL; case CAIRO_STATUS_USER_FONT_IMMUTABLE: RETURN_NIL; case CAIRO_STATUS_USER_FONT_ERROR: RETURN_NIL; case CAIRO_STATUS_NEGATIVE_COUNT: RETURN_NIL; case CAIRO_STATUS_INVALID_CLUSTERS: RETURN_NIL; case CAIRO_STATUS_INVALID_SLANT: RETURN_NIL; case CAIRO_STATUS_INVALID_WEIGHT: RETURN_NIL; case CAIRO_STATUS_NO_MEMORY: RETURN_NIL; case CAIRO_STATUS_INVALID_SIZE: RETURN_NIL; case CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED: RETURN_NIL; case CAIRO_STATUS_DEVICE_TYPE_MISMATCH: RETURN_NIL; case CAIRO_STATUS_DEVICE_ERROR: RETURN_NIL; case CAIRO_STATUS_INVALID_MESH_CONSTRUCTION: RETURN_NIL; case CAIRO_STATUS_DEVICE_FINISHED: RETURN_NIL; case CAIRO_STATUS_JBIG2_GLOBAL_MISSING: RETURN_NIL; case CAIRO_STATUS_PNG_ERROR: RETURN_NIL; case CAIRO_STATUS_FREETYPE_ERROR: RETURN_NIL; case CAIRO_STATUS_WIN32_GDI_ERROR: RETURN_NIL; case CAIRO_STATUS_TAG_ERROR: RETURN_NIL; case CAIRO_STATUS_DWRITE_ERROR: RETURN_NIL; case CAIRO_STATUS_SVG_FONT_ERROR: RETURN_NIL; default: break;
}
status = CAIRO_STATUS_NO_MEMORY;
RETURN_NIL; #undef RETURN_NIL
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.