1 /* display a region in a workspace
2 */
3
4 /*
5
6 Copyright (C) 1991-2003 The National Gallery
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 along
19 with this program; if not, write to the Free Software Foundation, Inc.,
20 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
22 */
23
24 /*
25
26 These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
27
28 */
29
30 /*
31 #define DEBUG
32 */
33
34 #include "ip.h"
35
36 static iImageviewClass *parent_class = NULL;
37
38 static void
iregionview_class_init(iRegionviewClass * class)39 iregionview_class_init( iRegionviewClass *class )
40 {
41 parent_class = g_type_class_peek_parent( class );
42
43 /* Create signals.
44 */
45
46 /* Init methods.
47 */
48 }
49
50 static void
iregionview_init(iRegionview * iregionview)51 iregionview_init( iRegionview *iregionview )
52 {
53 #ifdef DEBUG
54 printf( "iregionview_init\n" );
55 #endif /*DEBUG*/
56 }
57
58 GtkType
iregionview_get_type(void)59 iregionview_get_type( void )
60 {
61 static GtkType iregionview_type = 0;
62
63 if( !iregionview_type ) {
64 static const GtkTypeInfo info = {
65 "iRegionview",
66 sizeof( iRegionview ),
67 sizeof( iRegionviewClass ),
68 (GtkClassInitFunc) iregionview_class_init,
69 (GtkObjectInitFunc) iregionview_init,
70 /* reserved_1 */ NULL,
71 /* reserved_2 */ NULL,
72 (GtkClassInitFunc) NULL,
73 };
74
75 iregionview_type = gtk_type_unique( TYPE_IIMAGEVIEW, &info );
76 }
77
78 return( iregionview_type );
79 }
80
81 View *
iregionview_new(void)82 iregionview_new( void )
83 {
84 iRegionview *iregionview = gtk_type_new( TYPE_IREGIONVIEW );
85
86 #ifdef DEBUG
87 printf( "iregionview_new\n" );
88 #endif /*DEBUG*/
89
90 return( VIEW( iregionview ) );
91 }
92