2 * Copyright (c) 2008 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef _SWFDEC_RENDERER_INTERNAL_H_
21 #define _SWFDEC_RENDERER_INTERNAL_H_
23 #include <swfdec/swfdec_renderer.h>
24 #include <swfdec/swfdec_cached.h>
25 #include <swfdec/swfdec_color.h>
30 typedef gboolean
SwfdecRendererSearchFunc (SwfdecCached
*cached
, gpointer data
);
32 SwfdecRenderer
* swfdec_renderer_new_default (SwfdecPlayer
* player
);
34 void swfdec_renderer_attach (SwfdecRenderer
* renderer
,
36 SwfdecRenderer
* swfdec_renderer_get (cairo_t
* cr
);
37 void swfdec_renderer_reset_matrix (cairo_t
* cr
);
39 void swfdec_renderer_add_cache (SwfdecRenderer
* renderer
,
42 SwfdecCached
* value
);
43 SwfdecCached
* swfdec_renderer_get_cache (SwfdecRenderer
* renderer
,
45 SwfdecRendererSearchFunc func
,
47 gsize swfdec_renderer_get_max_cache_size
48 (SwfdecRenderer
* renderer
);
50 cairo_surface_t
* swfdec_renderer_create_similar (SwfdecRenderer
* renderer
,
51 cairo_surface_t
* surface
);
52 cairo_surface_t
* swfdec_renderer_create_for_data (SwfdecRenderer
* renderer
,
54 cairo_format_t format
,
58 cairo_surface_t
* swfdec_renderer_transform (SwfdecRenderer
* renderer
,
59 cairo_surface_t
* surface
,
60 const SwfdecColorTransform
*trans
);