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"
24 #include "ev-document.h"
32 static guint signals[LAST_SIGNAL] = { 0 };
34 EV_DEFINE_INTERFACE (EvAsyncRenderer, ev_async_renderer, 0)
37 ev_async_renderer_class_init (EvAsyncRendererIface *klass)
39 static gboolean initialized = FALSE;
42 signals[RENDER_FINISHED] =
43 g_signal_new ("render_finished",
44 EV_TYPE_ASYNC_RENDERER,
46 G_STRUCT_OFFSET (EvAsyncRendererIface, render_finished),
48 g_cclosure_marshal_VOID__OBJECT,
57 ev_async_renderer_render_pixbuf (EvAsyncRenderer *async_renderer,
62 EvAsyncRendererIface *iface = EV_ASYNC_RENDERER_GET_IFACE (async_renderer);
64 iface->render_pixbuf (async_renderer, page, scale, rotation);