root/plgtkimageview/gtkimageviewperl.h

Revision 488, 2.2 kB (checked in by jeffrey, 11 months ago)

fixed remaining tests failures

Line 
1 /*
2  * Copyright (c) 2007 by Jeffrey Ratcliffe <Jeffrey.Ratcliffe@gmail.com>
3  * see AUTHORS for complete list of contributors
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 3 of the License, or (at your option) any later version.
9  *
10  * This library 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 GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18
19 #ifndef _GTKIMAGEVIEWPERL_H_
20 #define _GTKIMAGEVIEWPERL_H_
21
22 /* Include all of gtkimageview's headers for internal consistency */
23 #include <gtkimageview/gtkimageview.h>
24 #include <gtkimageview/gtkimagenav.h>
25 #include <gtkimageview/gtkimagescrollwin.h>
26 #include <gtkimageview/gtkiimagetool.h>
27 #include <gtkimageview/gtkimagetooldragger.h>
28 #include <gtkimageview/gtkimagetoolpainter.h>
29 #include <gtkimageview/gtkimagetoolselector.h>
30 #include <gtkimageview/gtkanimview.h>
31 #include <gtkimageview/gdkpixbufdrawcache.h>
32 #include <gtkimageview/gtkimageview-typebuiltins.h>
33 #include <gtkimageview/cursors.h>
34 #include <gtkimageview/gtkzooms.h>
35
36 /* Get important stuff from gtk2-perl */
37 #include <gtk2perl.h>
38
39 /* Binding definitions -- order is important */
40 #include "gtkimageviewperl-autogen.h"
41 #define GDK_TYPE_PIXBUF_DRAW_OPTS (gdk_pixbuf_draw_opts_get_type ())
42 GType gdk_pixbuf_draw_opts_get_type (void) G_GNUC_CONST;
43 #define GDK_TYPE_PIXBUF_DRAW_CACHE (gdk_pixbuf_draw_cache_get_type ())
44 GType gdk_pixbuf_draw_cache_get_type (void) G_GNUC_CONST;
45
46 /* Only in very new versions of Glib-Perl */
47 #ifndef gperl_sv_is_hash_ref
48 #define gperl_sv_is_hash_ref(sv) \
49     ((sv) && SvOK (sv) && SvROK (sv) && SvTYPE (SvRV (sv)) == SVt_PVHV)
50 #endif
51
52 /* need a prototype for this as it is used in several places */
53 GdkPixbufDrawOpts * SvGdkPixbufDrawOpts (SV * sv);
54 SV * newSVGdkPixbufDrawOpts (GdkPixbufDrawOpts * opts);
55
56 #endif /* _GTKIMAGEVIEWPERL_H_ */
Note: See TracBrowser for help on using the browser.