1 /* display plot info and mouse posn
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 #define TYPE_PLOTSTATUS (plotstatus_get_type())
31 #define PLOTSTATUS( obj ) (GTK_CHECK_CAST( (obj), TYPE_PLOTSTATUS, Plotstatus ))
32 #define PLOTSTATUS_CLASS( klass ) \
33 	(GTK_CHECK_CLASS_CAST( (klass), TYPE_PLOTSTATUS, PlotstatusClass ))
34 #define IS_PLOTSTATUS( obj ) (GTK_CHECK_TYPE( (obj), TYPE_PLOTSTATUS ))
35 #define IS_PLOTSTATUS_CLASS( klass ) \
36 	(GTK_CHECK_CLASS_TYPE( (klass), TYPE_PLOTSTATUS ))
37 
38 struct _Plotstatus {
39 	GtkFrame parent_class;
40 
41 	Plotmodel *plotmodel;
42 
43 	GtkWidget *top;		/* Top label */
44 	GtkWidget *pos;		/* Position */
45 	GtkWidget *hb;		/* Band element hbox */
46 	GtkWidget *mag;		/* Magnification display */
47 
48 	GtkWidget **label;	/* A label for displaying each series */
49 	int columns;		/* Last number of columns we saw */
50 };
51 
52 typedef struct _PlotstatusClass {
53 	GtkFrameClass parent_class;
54 
55 	/* My methods.
56 	 */
57 } PlotstatusClass;
58 
59 GtkType plotstatus_get_type( void );
60 Plotstatus *plotstatus_new( Plotmodel *plotmodel );
61 void plotstatus_mouse( Plotstatus *plotstatus, double x, double y );
62