1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
3 * Copyright (C) 2005 Red Hat, Inc.
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-selection.h"
25 static void ev_selection_base_init (gpointer g_class);
28 ev_selection_get_type (void)
30 static GType type = 0;
32 if (G_UNLIKELY (type == 0))
34 static const GTypeInfo our_info =
36 sizeof (EvSelectionIface),
37 ev_selection_base_init,
41 type = g_type_register_static (G_TYPE_INTERFACE,
43 &our_info, (GTypeFlags)0);
50 ev_selection_base_init (gpointer g_class)
52 static gboolean initialized = FALSE;
60 ev_selection_render_selection (EvSelection *selection,
64 EvRectangle *old_points,
68 EvSelectionIface *iface = EV_SELECTION_GET_IFACE (selection);
70 iface->render_selection (selection, rc,
77 ev_selection_get_selection_region (EvSelection *selection,
81 EvSelectionIface *iface = EV_SELECTION_GET_IFACE (selection);
83 return iface->get_selection_region (selection, rc, points);
87 ev_selection_get_selection_map (EvSelection *selection,
90 EvSelectionIface *iface = EV_SELECTION_GET_IFACE (selection);
92 return iface->get_selection_map (selection, rc);