1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 
3 /*
4  *  GThumb
5  *
6  *  Copyright (C) 2013 Free Software Foundation, Inc.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef GTH_IMAGE_VIEWER_PAGE_PAGE_TOOL_H
23 #define GTH_IMAGE_VIEWER_PAGE_PAGE_TOOL_H
24 
25 #include <gthumb.h>
26 #include <extensions/image_viewer/image-viewer.h>
27 
28 G_BEGIN_DECLS
29 
30 #define GTH_TYPE_IMAGE_VIEWER_PAGE_TOOL (gth_image_viewer_page_tool_get_type ())
31 #define GTH_IMAGE_VIEWER_PAGE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTH_TYPE_IMAGE_VIEWER_PAGE_TOOL, GthImageViewerPageTool))
32 #define GTH_IMAGE_VIEWER_PAGE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTH_TYPE_IMAGE_VIEWER_PAGE_TOOL, GthImageViewerPageToolClass))
33 #define GTH_IS_IMAGE_VIEWER_PAGE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTH_TYPE_IMAGE_VIEWER_PAGE_TOOL))
34 #define GTH_IS_IMAGE_VIEWER_PAGE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTH_TYPE_IMAGE_VIEWER_PAGE_TOOL))
35 #define GTH_IMAGE_VIEWER_PAGE_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTH_TYPE_IMAGE_VIEWER_PAGE_TOOL, GthImageViewerPageToolClass))
36 
37 typedef struct _GthImageViewerPageTool GthImageViewerPageTool;
38 typedef struct _GthImageViewerPageToolClass GthImageViewerPageToolClass;
39 typedef struct _GthImageViewerPageToolPrivate GthImageViewerPageToolPrivate;
40 
41 struct _GthImageViewerPageTool {
42 	GthFileTool parent_instance;
43 	GthImageViewerPageToolPrivate *priv;
44 };
45 
46 struct _GthImageViewerPageToolClass {
47 	GthFileToolClass parent_class;
48 
49 	/* virtual functions */
50 
51 	void         (*modify_image)      (GthImageViewerPageTool *self);
52 	void         (*reset_image)       (GthImageViewerPageTool *self);
53 };
54 
55 GType			gth_image_viewer_page_tool_get_type		(void);
56 cairo_surface_t *	gth_image_viewer_page_tool_get_source		(GthImageViewerPageTool *self);
57 GthTask *		gth_image_viewer_page_tool_get_task		(GthImageViewerPageTool *self);
58 GthViewerPage *		gth_image_viewer_page_tool_get_page		(GthImageViewerPageTool *self);
59 void			gth_image_viewer_page_tool_reset_image		(GthImageViewerPageTool *self);
60 
61 G_END_DECLS
62 
63 #endif /* GTH_IMAGE_VIEWER_PAGE_PAGE_TOOL_H */
64