2009-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
[moon.git] / cairo / boilerplate / cairo-boilerplate-test-surfaces-private.h
blob481b531e7603a66ab60b88875d3aad1d5f94f8ff
1 /* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */
2 /*
3 * Copyright © 2004,2006 Red Hat, Inc.
5 * Permission to use, copy, modify, distribute, and sell this software
6 * and its documentation for any purpose is hereby granted without
7 * fee, provided that the above copyright notice appear in all copies
8 * and that both that copyright notice and this permission notice
9 * appear in supporting documentation, and that the name of
10 * Red Hat, Inc. not be used in advertising or publicity pertaining to
11 * distribution of the software without specific, written prior
12 * permission. Red Hat, Inc. makes no representations about the
13 * suitability of this software for any purpose. It is provided "as
14 * is" without express or implied warranty.
16 * RED HAT, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
17 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
18 * FITNESS, IN NO EVENT SHALL RED HAT, INC. BE LIABLE FOR ANY SPECIAL,
19 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
20 * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
21 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
22 * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24 * Author: Carl D. Worth <cworth@cworth.org>
27 #ifndef _CAIRO_BOILERPLATE_TEST_SURFACES_PRIVATE_H_
28 #define _CAIRO_BOILERPLATE_TEST_SURFACES_PRIVATE_H_
30 cairo_surface_t *
31 _cairo_boilerplate_test_fallback_create_surface (const char *name,
32 cairo_content_t content,
33 int width,
34 int height,
35 int max_width,
36 int max_height,
37 cairo_boilerplate_mode_t mode,
38 int id,
39 void **closure);
42 cairo_surface_t *
43 _cairo_boilerplate_test_meta_create_surface (const char *name,
44 cairo_content_t content,
45 int width,
46 int height,
47 int max_width,
48 int max_height,
49 cairo_boilerplate_mode_t mode,
50 int id,
51 void **closure);
54 cairo_surface_t *
55 _cairo_boilerplate_test_paginated_create_surface (const char *name,
56 cairo_content_t content,
57 int width,
58 int height,
59 int max_width,
60 int max_height,
61 cairo_boilerplate_mode_t mode,
62 int id,
63 void **closure);
65 cairo_status_t
66 _cairo_boilerplate_test_paginated_surface_write_to_png (cairo_surface_t *surface,
67 const char *filename);
69 cairo_surface_t *
70 _cairo_boilerplate_test_paginated_get_image_surface (cairo_surface_t *surface,
71 int page,
72 int width,
73 int height);
75 void
76 _cairo_boilerplate_test_paginated_cleanup (void *closure);
78 #endif