1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
3 * Copyright (C) 2004 Marco Pesenti Gritti
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 #include "ev-async-renderer.h"
25 static void ev_async_renderer_class_init (gpointer g_class);
33 static guint signals[LAST_SIGNAL] = { 0 };
36 ev_async_renderer_get_type (void)
38 static GType type = 0;
40 if (G_UNLIKELY (type == 0))
42 static const GTypeInfo our_info =
44 sizeof (EvAsyncRendererIface),
47 (GClassInitFunc)ev_async_renderer_class_init
50 type = g_type_register_static (G_TYPE_INTERFACE,
52 &our_info, (GTypeFlags)0);
59 ev_async_renderer_class_init (gpointer g_class)
61 signals[RENDER_FINISHED] =
62 g_signal_new ("render_finished",
63 EV_TYPE_ASYNC_RENDERER,
65 G_STRUCT_OFFSET (EvAsyncRendererIface, render_finished),
67 g_cclosure_marshal_VOID__OBJECT,
74 ev_async_renderer_render_pixbuf (EvAsyncRenderer *async_renderer,
79 EvAsyncRendererIface *iface = EV_ASYNC_RENDERER_GET_IFACE (async_renderer);
81 iface->render_pixbuf (async_renderer, page, scale, rotation);