2 * Copyright (C) 2008 Liam Girdwood
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330,
17 * Boston, MA 02111-1307, USA.
24 #include <libnova/libnova.h>
28 #define NOVA_TYPE_LEGEND \
30 #define NOVA_LEGEND(obj) \
31 (G_TYPE_CHECK_INSTANCE_CAST ((obj), NOVA_TYPE_LEGEND, GtkLegend))
32 #define NOVA_LEGEND_CLASS(obj) \
33 (G_TYPE_CHECK_CLASS_CAST ((obj), NOVA_LEGEND, GtkLegendClass))
34 #define NOVA_IS_LEGEND(obj) \
35 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NOVA_TYPE_LEGEND))
36 #define NOVA_IS_LEGEND_CLASS(obj) \
37 (G_TYPE_CHECK_CLASS_TYPE ((obj), NOVA_TYPE_LEGEND))
38 #define NOVA_LEGEND_GET_CLASS \
39 (G_TYPE_INSTANCE_GET_CLASS ((obj), NOVA_TYPE_LEGEND, GtkLegendClass))
41 typedef struct _GtkLegend GtkLegend
;
42 typedef struct _GtkLegendClass GtkLegendClass
;
46 GtkDrawingArea parent
;
49 struct _GtkLegendClass
51 GtkDrawingAreaClass parent_class
;
54 GtkWidget
*legend_new(void);
56 typedef struct _Legend
{
57 struct ln_equ_posn pointer_pos
;
62 void legend_update_pointer(GtkLegend
*gtk_legend
, gdouble ra
, gdouble dec
);
63 void legend_update_fov(GtkLegend
*gtk_legend
, gdouble fov
);