/* * go-graph-widget.h : * * Copyright (C) 2003-2005 Jean Brefort (jean.brefort@normalesup.org) * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GO_GRAPH_WIDGET_H_ #define _GO_GRAPH_WIDGET_H_ #include #include G_BEGIN_DECLS #define GO_TYPE_GRAPH_WIDGET (go_graph_widget_get_type ()) #define GO_GRAPH_WIDGET(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_GRAPH_WIDGET, GOGraphWidget)) #define GO_IS_GRAPH_WIDGET(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_GRAPH_WIDGET)) typedef struct _GOGraphWidget GOGraphWidget; typedef struct _GOGraphWidgetClass GOGraphWidgetClass; typedef enum { GO_GRAPH_WIDGET_SIZE_MODE_FIT = 0, GO_GRAPH_WIDGET_SIZE_MODE_FIT_WIDTH, GO_GRAPH_WIDGET_SIZE_MODE_FIT_HEIGHT, GO_GRAPH_WIDGET_SIZE_MODE_FIXED_SIZE } GOGraphWidgetSizeMode; GType go_graph_widget_get_type (void); GtkWidget *go_graph_widget_new (GogGraph *graph); void go_graph_widget_set_size_mode (GOGraphWidget *widget, GOGraphWidgetSizeMode size_mode, int width, int height); GogGraph *go_graph_widget_get_graph (GOGraphWidget *widget); GogChart *go_graph_widget_get_chart (GOGraphWidget *widget); GogRenderer *go_graph_widget_get_renderer (GOGraphWidget *widget); G_END_DECLS #endif /* _GO_GRAPH_WIDGET_H_ */