Initial commit.
[nova.git] / src / sky / legend.h
blob6f13e37abaa55dc7a0c533dbeef12e08d3cfff0c
1 /*
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.
20 #ifndef __LEGEND_H__
21 #define __LEGEND_H__
23 #include <gtk/gtk.h>
24 #include <libnova/libnova.h>
26 G_BEGIN_DECLS
28 #define NOVA_TYPE_LEGEND \
29 (legend_get_type ())
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;
44 struct _GtkLegend
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;
58 gdouble fov;
60 } Legend;
62 void legend_update_pointer(GtkLegend *gtk_legend, gdouble ra, gdouble dec);
63 void legend_update_fov(GtkLegend *gtk_legend, gdouble fov);
65 G_END_DECLS
67 #endif